bonsai tool module imports #5178

This commit is contained in:
Andrej730
2024-08-14 13:56:39 +05:00
committed by Andrej
parent be442ff1be
commit c03777cfe6
82 changed files with 532 additions and 550 deletions
+4 -4
View File
@@ -33,10 +33,10 @@
import bpy
import ifcopenshell
import blenderbim.core.tool
import blenderbim.tool as tool
import bonsai.core.tool
import bonsai.tool as tool
from test.bim.bootstrap import NewFile
from blenderbim.tool.demo import Demo as subject
from bonsai.tool.demo import Demo as subject
# Our first test is that our tool implements all the abstract methods defined by
@@ -45,7 +45,7 @@ from blenderbim.tool.demo import Demo as subject
# other languages, but not Python, so we test it explicitly.
class TestImplementsTool(NewFile):
def test_run(self):
assert isinstance(subject(), blenderbim.core.tool.Demo)
assert isinstance(subject(), bonsai.core.tool.Demo)
# These are fairly boring tests. What it does demonstrate is that no matter how