From bcf5f07718ee418d989feb65cadd61c1289bc0ce Mon Sep 17 00:00:00 2001 From: Trashman247 Date: Mon, 19 Jun 2023 21:59:17 -0700 Subject: [PATCH] Rework NewBrick and LoadBrick in test_brick.py to fit with new VGC format - VGC means VersionedGraphCollection. - BrickStore.schema is now a filepath, so make that the case in the testing also. --- src/blenderbim/test/tool/test_brick.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/blenderbim/test/tool/test_brick.py b/src/blenderbim/test/tool/test_brick.py index 1fc2a9b962..14687ce694 100644 --- a/src/blenderbim/test/tool/test_brick.py +++ b/src/blenderbim/test/tool/test_brick.py @@ -307,10 +307,8 @@ class TestImportBrickItems(NewFile): class TestLoadBrickFile(NewFile): def test_run(self): # We stub the schema to make tests run faster - BrickStore.schema = brickschema.Graph() cwd = os.path.dirname(os.path.realpath(__file__)) - schema_path = os.path.join(cwd, "..", "files", "BrickStub.ttl") - BrickStore.schema.load_file(schema_path) + BrickStore.schema = os.path.join(cwd, "..", "files", "BrickStub.ttl") # This is the actual test cwd = os.path.dirname(os.path.realpath(__file__)) @@ -322,10 +320,8 @@ class TestLoadBrickFile(NewFile): class TestNewBrickFile(NewFile): def test_run(self): # We stub the schema to make tests run faster - BrickStore.schema = brickschema.Graph() cwd = os.path.dirname(os.path.realpath(__file__)) - schema_path = os.path.join(cwd, "..", "files", "BrickStub.ttl") - BrickStore.schema.load_file(schema_path) + BrickStore.schema = os.path.join(cwd, "..", "files", "BrickStub.ttl") # This is the actual test subject.new_brick_file()