def test_data_collections_rename_different_names(self): self.send_strings( [bl.data_collections_rename("Collection1", "Collection1_renamed")], to=0) delay = 0.0 time.sleep(delay) self.send_strings([ bl.data_collections_rename("Collection1", "Collection1_renamed2") ], to=1) # fails: collection is duplicated successful = False self.assertTrue(successful)
def test_data_collections_rename_same_name(self): self.send_strings( [bl.data_collections_rename("Collection1", "Collection1_renamed")], to=0) delay = 0.0 time.sleep(delay) self.send_strings( [bl.data_collections_rename("Collection1", "Collection1_renamed")], to=1) # exceptions successful = False self.assertTrue(successful) pass
def test_remove_child(self): self.send_strings( [bl.data_collections_rename("Collection1", "Collection1_renamed")], to=0) delay = 0.0 time.sleep(delay) self.send_strings([bl.data_collections_remove("Collection11")], to=1) # Exception, scene OK successful = False self.assertTrue(successful)
def test_remove_collection(self): self.send_strings( [bl.data_collections_rename("Collection1", "Collection1_renamed")], to=0) delay = 0.0 time.sleep(delay) self.send_strings(bl.data_collections_remove("Collection1"), to=1) # No problem successful = True self.assertTrue(successful)
def test_unlink_object(self): self.send_strings([ bl.collection_objects_unlink("EmptyInCollection1", "Collection1") ], to=0) delay = 0.0 time.sleep(delay) self.send_strings( [bl.data_collections_rename("Collection1", "Collection1_renamed")], to=1) # 2020-08-13 21:24:20,703 W mixer.blender_client - collection = share_data.blender_collections[collection_name] [.\mixer\log_utils.py:62] # 2020-08-13 21:24:20,706 W mixer.blender_client - KeyError: 'Collection1' [.\mixer\log_utils.py:62] # The object is not removed successful = False self.assertTrue(successful)
def test_add_object(self): self.send_strings([ bl.active_layer_collection("Collection1"), bl.ops_objects_light_add() ], to=0) delay = 0.0 time.sleep(delay) self.send_strings( [bl.data_collections_rename("Collection1", "Collection1_renamed")], to=1) # 2020-08-13 21:24:20,703 W mixer.blender_client - collection = share_data.blender_collections[collection_name] [.\mixer\log_utils.py:62] # 2020-08-13 21:24:20,706 W mixer.blender_client - KeyError: 'Collection1' [.\mixer\log_utils.py:62] # The point light is in no collection successful = False self.assertTrue(successful)