mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-07 21:06:25 +00:00
Moved blenderbim tests temporary files to separate directory
Moved temporary test files to separate directory and added it to gitignore Still have test.exp.cache.dat spawning from `test_feature`...
This commit is contained in:
@@ -34,16 +34,20 @@ class TestImplementsTool(NewFile):
|
||||
class TestAddSchemaIdentifier(NewFile):
|
||||
def test_run(self):
|
||||
cwd = os.path.dirname(os.path.realpath(__file__))
|
||||
schema = subject.load_express(os.path.join(cwd, "..", "files", "test.exp"))
|
||||
schema_path = os.path.join(cwd, "..", "files", "test.exp")
|
||||
schema = subject.load_express(schema_path)
|
||||
subject.add_schema_identifier(schema)
|
||||
assert IfcStore.schema_identifiers[-1] == "IFCROGUE"
|
||||
os.remove(schema_path + ".cache.dat")
|
||||
|
||||
|
||||
class TestLoadExpress(NewFile):
|
||||
def test_run(self):
|
||||
cwd = os.path.dirname(os.path.realpath(__file__))
|
||||
schema = subject.load_express(os.path.join(cwd, "..", "files", "test.exp"))
|
||||
schema_path = os.path.join(cwd, "..", "files", "test.exp")
|
||||
schema = subject.load_express(schema_path)
|
||||
assert schema.schema_name == "IFCROGUE"
|
||||
os.remove(schema_path + ".cache.dat")
|
||||
|
||||
|
||||
class TestPurgeHdf5Cache(NewFile):
|
||||
|
||||
Reference in New Issue
Block a user