[Bf-blender-cvs] [2d6d8fc7cad] master: Attempt fix for new lib reload/relocate tests on windows.
Bastien Montagne
noreply at git.blender.org
Thu Nov 4 11:26:52 CET 2021
Commit: 2d6d8fc7cad200a52f918a1b0ebf9d329a9de0bf
Author: Bastien Montagne
Date: Thu Nov 4 11:25:30 2021 +0100
Branches: master
https://developer.blender.org/rB2d6d8fc7cad200a52f918a1b0ebf9d329a9de0bf
Attempt fix for new lib reload/relocate tests on windows.
Try splitting them into their own class.
===================================================================
M tests/python/bl_blendfile_liblink.py
===================================================================
diff --git a/tests/python/bl_blendfile_liblink.py b/tests/python/bl_blendfile_liblink.py
index 6017d3f1a1e..08237f71673 100644
--- a/tests/python/bl_blendfile_liblink.py
+++ b/tests/python/bl_blendfile_liblink.py
@@ -370,7 +370,7 @@ class TestBlendLibAppendReuseID(TestBlendLibLinkHelper):
assert(len(bpy.data.collections) == 0) # Scene's master collection is not listed here
-class TestBlendLibLibraryReloadRelocate(TestBlendLibLinkHelper):
+class TestBlendLibLibraryReload(TestBlendLibLinkHelper):
def __init__(self, args):
self.args = args
@@ -399,6 +399,13 @@ class TestBlendLibLibraryReloadRelocate(TestBlendLibLinkHelper):
print(reload_data)
assert(orig_data == reload_data)
+
+
+class TestBlendLibLibraryRelocate(TestBlendLibLinkHelper):
+
+ def __init__(self, args):
+ self.args = args
+
def test_link_relocate(self):
output_dir = self.args.output_dir
output_lib_path = self.init_lib_data_basic()
@@ -432,7 +439,8 @@ TESTS = (
TestBlendLibLinkSaveLoadBasic,
TestBlendLibAppendBasic,
TestBlendLibAppendReuseID,
- TestBlendLibLibraryReloadRelocate,
+ TestBlendLibLibraryReload,
+ TestBlendLibLibraryRelocate,
)
More information about the Bf-blender-cvs
mailing list