mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 21:42:19 +00:00
bonsai tool module imports #5178
This commit is contained in:
@@ -23,15 +23,15 @@ import ifcopenshell.api.root
|
||||
import ifcopenshell.api.unit
|
||||
import ifcopenshell.api.context
|
||||
import ifcopenshell.util.shape_builder
|
||||
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.aggregate import Aggregate as subject
|
||||
from bonsai.tool.aggregate import Aggregate as subject
|
||||
|
||||
|
||||
class TestImplementsTool(NewFile):
|
||||
def test_run(self):
|
||||
assert isinstance(subject(), blenderbim.core.tool.Aggregate)
|
||||
assert isinstance(subject(), bonsai.core.tool.Aggregate)
|
||||
|
||||
|
||||
class TestCanAggregate(NewFile):
|
||||
|
||||
@@ -18,16 +18,16 @@
|
||||
|
||||
import bpy
|
||||
import ifcopenshell
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.tool as tool
|
||||
import bonsai.core.tool
|
||||
import bonsai.tool as tool
|
||||
import pytest
|
||||
from test.bim.bootstrap import NewFile
|
||||
from blenderbim.tool.blender import Blender as subject
|
||||
from bonsai.tool.blender import Blender as subject
|
||||
|
||||
|
||||
class TestImplementsTool(NewFile):
|
||||
def test_run(self):
|
||||
assert isinstance(subject(), blenderbim.core.tool.Blender)
|
||||
assert isinstance(subject(), bonsai.core.tool.Blender)
|
||||
|
||||
|
||||
class TestCopyNodeGraph(NewFile):
|
||||
|
||||
@@ -24,18 +24,18 @@ from brickschema.namespaces import REF, A
|
||||
import ifcopenshell
|
||||
import ifcopenshell.api
|
||||
import ifcopenshell.guid
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.tool as tool
|
||||
import bonsai.core.tool
|
||||
import bonsai.tool as tool
|
||||
from rdflib.namespace import RDF
|
||||
from rdflib import Literal, URIRef, Namespace
|
||||
from test.bim.bootstrap import NewFile
|
||||
from blenderbim.tool.brick import Brick as subject
|
||||
from blenderbim.tool.brick import BrickStore
|
||||
from bonsai.tool.brick import Brick as subject
|
||||
from bonsai.tool.brick import BrickStore
|
||||
|
||||
|
||||
class TestImplementsTool(NewFile):
|
||||
def test_run(self):
|
||||
assert isinstance(subject(), blenderbim.core.tool.Brick)
|
||||
assert isinstance(subject(), bonsai.core.tool.Brick)
|
||||
|
||||
|
||||
class TestAddBrick(NewFile):
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# along with Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from test.bim.bootstrap import NewFile
|
||||
from blenderbim.tool.cad import Cad as subject
|
||||
from bonsai.tool.cad import Cad as subject
|
||||
from mathutils import Vector
|
||||
|
||||
V = lambda *x: Vector([float(i) for i in x])
|
||||
|
||||
@@ -20,15 +20,15 @@ import bpy
|
||||
import ifcopenshell
|
||||
import ifcopenshell.api
|
||||
import ifcopenshell.util.element
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.tool as tool
|
||||
from blenderbim.tool.collector import Collector as subject
|
||||
import bonsai.core.tool
|
||||
import bonsai.tool as tool
|
||||
from bonsai.tool.collector import Collector as subject
|
||||
from test.bim.bootstrap import NewFile, NewIfc, NewIfc4X3
|
||||
|
||||
|
||||
class TestImplementsTool(NewFile):
|
||||
def test_run(self):
|
||||
assert isinstance(subject(), blenderbim.core.tool.Collector)
|
||||
assert isinstance(subject(), bonsai.core.tool.Collector)
|
||||
|
||||
|
||||
class TestAssign(NewIfc):
|
||||
|
||||
@@ -19,14 +19,14 @@
|
||||
import bpy
|
||||
import ifcopenshell
|
||||
import test.bim.bootstrap
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.tool as tool
|
||||
from blenderbim.tool.context import Context as subject
|
||||
import bonsai.core.tool
|
||||
import bonsai.tool as tool
|
||||
from bonsai.tool.context import Context as subject
|
||||
|
||||
|
||||
class TestImplementsTool(test.bim.bootstrap.NewFile):
|
||||
def test_run(self):
|
||||
assert isinstance(subject(), blenderbim.core.tool.Context)
|
||||
assert isinstance(subject(), bonsai.core.tool.Context)
|
||||
|
||||
|
||||
class TestSetContext(test.bim.bootstrap.NewFile):
|
||||
|
||||
@@ -19,16 +19,16 @@
|
||||
import os
|
||||
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.debug import Debug as subject
|
||||
from blenderbim.bim.ifc import IfcStore
|
||||
from bonsai.tool.debug import Debug as subject
|
||||
from bonsai.bim.ifc import IfcStore
|
||||
|
||||
|
||||
class TestImplementsTool(NewFile):
|
||||
def test_run(self):
|
||||
assert isinstance(subject(), blenderbim.core.tool.Debug)
|
||||
assert isinstance(subject(), bonsai.core.tool.Debug)
|
||||
|
||||
|
||||
class TestAddSchemaIdentifier(NewFile):
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -19,15 +19,15 @@
|
||||
import bpy
|
||||
import ifcopenshell
|
||||
import ifcopenshell.api
|
||||
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.document import Document as subject
|
||||
from bonsai.tool.document import Document as subject
|
||||
|
||||
|
||||
class TestImplementsTool(NewFile):
|
||||
def test_run(self):
|
||||
assert isinstance(subject(), blenderbim.core.tool.Document)
|
||||
assert isinstance(subject(), bonsai.core.tool.Document)
|
||||
|
||||
|
||||
class TestAddBreadcrumb(NewFile):
|
||||
|
||||
@@ -22,12 +22,12 @@ import bpy
|
||||
import mathutils
|
||||
import ifcopenshell
|
||||
import ifcopenshell.guid
|
||||
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.drawing import Drawing as subject
|
||||
from blenderbim.bim.ifc import IfcStore
|
||||
from blenderbim.bim.module.drawing.data import DecoratorData
|
||||
from bonsai.tool.drawing import Drawing as subject
|
||||
from bonsai.bim.ifc import IfcStore
|
||||
from bonsai.bim.module.drawing.data import DecoratorData
|
||||
from mathutils import Vector
|
||||
|
||||
import xml.etree.ElementTree as ET
|
||||
@@ -35,7 +35,7 @@ import xml.etree.ElementTree as ET
|
||||
|
||||
class TestImplementsTool(NewFile):
|
||||
def test_run(self):
|
||||
assert isinstance(subject(), blenderbim.core.tool.Drawing)
|
||||
assert isinstance(subject(), bonsai.core.tool.Drawing)
|
||||
|
||||
|
||||
class TestCopyRepresentation(NewFile):
|
||||
|
||||
@@ -21,17 +21,17 @@ import math
|
||||
import numpy as np
|
||||
import ifcopenshell
|
||||
import ifcopenshell.api.type
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.tool as tool
|
||||
import bonsai.core.tool
|
||||
import bonsai.tool as tool
|
||||
from mathutils import Vector
|
||||
from test.bim.bootstrap import NewFile
|
||||
from blenderbim.tool.geometry import Geometry as subject
|
||||
from bonsai.tool.geometry import Geometry as subject
|
||||
from typing import Union
|
||||
|
||||
|
||||
class TestImplementsTool(NewFile):
|
||||
def test_run(self):
|
||||
assert isinstance(subject(), blenderbim.core.tool.Geometry)
|
||||
assert isinstance(subject(), bonsai.core.tool.Geometry)
|
||||
|
||||
|
||||
class TestChangeObjectData(NewFile):
|
||||
|
||||
@@ -20,16 +20,16 @@ import bpy
|
||||
import math
|
||||
import ifcopenshell
|
||||
import ifcopenshell.api
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.tool as tool
|
||||
import bonsai.core.tool
|
||||
import bonsai.tool as tool
|
||||
from mathutils import Vector
|
||||
from test.bim.bootstrap import NewFile
|
||||
from blenderbim.tool.georeference import Georeference as subject
|
||||
from bonsai.tool.georeference import Georeference as subject
|
||||
|
||||
|
||||
class TestImplementsTool(NewFile):
|
||||
def test_run(self):
|
||||
assert isinstance(subject(), blenderbim.core.tool.Georeference)
|
||||
assert isinstance(subject(), bonsai.core.tool.Georeference)
|
||||
|
||||
|
||||
class TestImportProjectedCRS(NewFile):
|
||||
|
||||
@@ -19,15 +19,15 @@
|
||||
import bpy
|
||||
import ifcopenshell
|
||||
import test.bim.bootstrap
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.tool as tool
|
||||
import bonsai.core.tool
|
||||
import bonsai.tool as tool
|
||||
import pytest
|
||||
from blenderbim.tool.ifc import Ifc as subject
|
||||
from bonsai.tool.ifc import Ifc as subject
|
||||
|
||||
|
||||
class TestImplementsTool(test.bim.bootstrap.NewFile):
|
||||
def test_run(self):
|
||||
assert isinstance(subject(), blenderbim.core.tool.Ifc)
|
||||
assert isinstance(subject(), bonsai.core.tool.Ifc)
|
||||
|
||||
|
||||
class TestSet(test.bim.bootstrap.NewFile):
|
||||
|
||||
@@ -18,15 +18,15 @@
|
||||
|
||||
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.library import Library as subject
|
||||
from bonsai.tool.library import Library as subject
|
||||
|
||||
|
||||
class TestImplementsTool(NewFile):
|
||||
def test_run(self):
|
||||
assert isinstance(subject(), blenderbim.core.tool.Library)
|
||||
assert isinstance(subject(), bonsai.core.tool.Library)
|
||||
|
||||
|
||||
class TestClearEditingMode(NewFile):
|
||||
|
||||
@@ -19,10 +19,10 @@
|
||||
import bpy
|
||||
import bmesh
|
||||
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.loader import Loader as subject
|
||||
from bonsai.tool.loader import Loader as subject
|
||||
import numpy as np
|
||||
from ifcopenshell.util.shape_builder import ShapeBuilder, V
|
||||
from mathutils import Vector
|
||||
@@ -31,7 +31,7 @@ from pathlib import Path
|
||||
|
||||
class TestImplementsTool(NewFile):
|
||||
def test_run(self):
|
||||
assert isinstance(subject(), blenderbim.core.tool.Loader)
|
||||
assert isinstance(subject(), bonsai.core.tool.Loader)
|
||||
|
||||
|
||||
class TestCreatingStyles(NewFile):
|
||||
@@ -58,7 +58,7 @@ class TestCreatingStyles(NewFile):
|
||||
texture_data = [
|
||||
{
|
||||
"Mode": "DIFFUSE",
|
||||
"URLReference": "blenderbim/test/files/image.jpg",
|
||||
"URLReference": "bonsai/test/files/image.jpg",
|
||||
"type": "IfcImageTexture",
|
||||
"uv_mode": "Generated",
|
||||
},
|
||||
@@ -113,7 +113,7 @@ class TestCreatingStyles(NewFile):
|
||||
|
||||
textures = [
|
||||
{
|
||||
"URLReference": "blenderbim/test/files/image.jpg",
|
||||
"URLReference": "bonsai/test/files/image.jpg",
|
||||
"Mode": "DIFFUSE",
|
||||
"RepeatS": True,
|
||||
"RepeatT": True,
|
||||
|
||||
@@ -19,15 +19,15 @@
|
||||
import bpy
|
||||
import ifcopenshell
|
||||
import ifcopenshell.api
|
||||
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.material import Material as subject
|
||||
from bonsai.tool.material import Material as subject
|
||||
|
||||
|
||||
class TestImplementsTool(NewFile):
|
||||
def test_run(self):
|
||||
assert isinstance(subject(), blenderbim.core.tool.Material)
|
||||
assert isinstance(subject(), bonsai.core.tool.Material)
|
||||
|
||||
|
||||
class TestDisableEditingMaterials(NewFile):
|
||||
|
||||
@@ -21,15 +21,15 @@ import math
|
||||
import numpy
|
||||
import ifcopenshell
|
||||
import test.bim.bootstrap
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.tool as tool
|
||||
from blenderbim.tool.misc import Misc as subject
|
||||
from blenderbim.bim.ifc import IfcStore
|
||||
import bonsai.core.tool
|
||||
import bonsai.tool as tool
|
||||
from bonsai.tool.misc import Misc as subject
|
||||
from bonsai.bim.ifc import IfcStore
|
||||
|
||||
|
||||
class TestImplementsTool(test.bim.bootstrap.NewFile):
|
||||
def test_run(self):
|
||||
assert isinstance(subject(), blenderbim.core.tool.Misc)
|
||||
assert isinstance(subject(), bonsai.core.tool.Misc)
|
||||
|
||||
|
||||
class TestGetObjectStorey(test.bim.bootstrap.NewFile):
|
||||
|
||||
@@ -23,18 +23,18 @@ import ifcopenshell.api.style
|
||||
import ifcopenshell.util.element
|
||||
import ifcopenshell.util.representation
|
||||
import ifcopenshell.util.unit
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.tool as tool
|
||||
import bonsai.core.tool
|
||||
import bonsai.tool as tool
|
||||
import numpy as np
|
||||
import json
|
||||
from test.bim.bootstrap import NewFile
|
||||
from blenderbim.tool.model import Model as subject
|
||||
from bonsai.tool.model import Model as subject
|
||||
from ifcopenshell.util.shape_builder import V, ShapeBuilder
|
||||
|
||||
|
||||
class TestImplementsTool(NewFile):
|
||||
def test_run(self):
|
||||
assert isinstance(subject(), blenderbim.core.tool.Model)
|
||||
assert isinstance(subject(), bonsai.core.tool.Model)
|
||||
|
||||
|
||||
class TestGenerateOccurrenceName(NewFile):
|
||||
|
||||
@@ -18,15 +18,15 @@
|
||||
|
||||
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.nest import Nest as subject
|
||||
from bonsai.tool.nest import Nest as subject
|
||||
|
||||
|
||||
class TestImplementsTool(NewFile):
|
||||
def test_run(self):
|
||||
assert isinstance(subject(), blenderbim.core.tool.Nest)
|
||||
assert isinstance(subject(), bonsai.core.tool.Nest)
|
||||
|
||||
|
||||
class TestCanNest(NewFile):
|
||||
|
||||
@@ -18,15 +18,15 @@
|
||||
|
||||
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.owner import Owner as subject
|
||||
from bonsai.tool.owner import Owner as subject
|
||||
|
||||
|
||||
class TestImplementsTool(NewFile):
|
||||
def test_run(self):
|
||||
assert isinstance(subject(), blenderbim.core.tool.Owner)
|
||||
assert isinstance(subject(), bonsai.core.tool.Owner)
|
||||
|
||||
|
||||
class TestAddAddressAttribute(NewFile):
|
||||
|
||||
@@ -19,15 +19,15 @@
|
||||
import os
|
||||
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.patch import Patch as subject
|
||||
from bonsai.tool.patch import Patch as subject
|
||||
|
||||
|
||||
class TestImplementsTool(NewFile):
|
||||
def test_run(self):
|
||||
assert isinstance(subject(), blenderbim.core.tool.Patch)
|
||||
assert isinstance(subject(), bonsai.core.tool.Patch)
|
||||
|
||||
|
||||
class TestRunMigratePatch(NewFile):
|
||||
|
||||
@@ -18,17 +18,17 @@
|
||||
|
||||
import bpy
|
||||
import ifcopenshell
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.tool as tool
|
||||
import bonsai.core.tool
|
||||
import bonsai.tool as tool
|
||||
import tempfile
|
||||
from test.bim.bootstrap import NewFile
|
||||
from blenderbim.tool.project import Project as subject
|
||||
from bonsai.tool.project import Project as subject
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
class TestImplementsTool(NewFile):
|
||||
def test_run(self):
|
||||
assert isinstance(subject(), blenderbim.core.tool.Project)
|
||||
assert isinstance(subject(), bonsai.core.tool.Project)
|
||||
|
||||
|
||||
class TestAppendAllTypesFromTemplate(NewFile):
|
||||
|
||||
@@ -18,15 +18,15 @@
|
||||
|
||||
import bpy
|
||||
import ifcopenshell
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.tool as tool
|
||||
from blenderbim.tool.pset import Pset as subject
|
||||
import bonsai.core.tool
|
||||
import bonsai.tool as tool
|
||||
from bonsai.tool.pset import Pset as subject
|
||||
from test.bim.bootstrap import NewFile
|
||||
|
||||
|
||||
class TestImplementsTool(NewFile):
|
||||
def test_run(self):
|
||||
assert isinstance(subject(), blenderbim.core.tool.Pset)
|
||||
assert isinstance(subject(), bonsai.core.tool.Pset)
|
||||
|
||||
|
||||
class TestGetElementPset(NewFile):
|
||||
|
||||
@@ -21,12 +21,12 @@ import ifcopenshell
|
||||
import ifcopenshell.api
|
||||
import ifcopenshell.util.pset
|
||||
import test.bim.bootstrap
|
||||
import blenderbim.core.tool
|
||||
import bonsai.core.tool
|
||||
import blenderbim.core.root
|
||||
import blenderbim.tool as tool
|
||||
import bonsai.tool as tool
|
||||
import blenderbim.bim.import_ifc as import_ifc
|
||||
import blenderbim.bim.module.qto.calculator as calculator
|
||||
from blenderbim.tool.qto import Qto as subject
|
||||
from bonsai.tool.qto import Qto as subject
|
||||
|
||||
|
||||
class TestImplementsTool(test.bim.bootstrap.NewFile):
|
||||
|
||||
@@ -19,15 +19,15 @@
|
||||
import bpy
|
||||
import ifcopenshell
|
||||
import ifcopenshell.api
|
||||
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.root import Root as subject
|
||||
from bonsai.tool.root import Root as subject
|
||||
|
||||
|
||||
class TestImplementsTool(NewFile):
|
||||
def test_run(self):
|
||||
assert isinstance(subject(), blenderbim.core.tool.Root)
|
||||
assert isinstance(subject(), bonsai.core.tool.Root)
|
||||
|
||||
|
||||
class TestAddTrackedOpening(NewFile):
|
||||
|
||||
@@ -18,16 +18,16 @@
|
||||
|
||||
import bpy
|
||||
import ifcopenshell
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.tool as tool
|
||||
from blenderbim.tool.spatial import Spatial as subject
|
||||
import bonsai.core.tool
|
||||
import bonsai.tool as tool
|
||||
from bonsai.tool.spatial import Spatial as subject
|
||||
from test.bim.bootstrap import NewFile
|
||||
from mathutils import Matrix
|
||||
|
||||
|
||||
class TestImplementsTool(NewFile):
|
||||
def test_run(self):
|
||||
assert isinstance(subject(), blenderbim.core.tool.Spatial)
|
||||
assert isinstance(subject(), bonsai.core.tool.Spatial)
|
||||
|
||||
|
||||
class TestCanContain(NewFile):
|
||||
|
||||
@@ -21,16 +21,16 @@ import bpy
|
||||
import ifcopenshell
|
||||
import ifcopenshell.api
|
||||
import ifcopenshell.util.representation
|
||||
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.style import Style as subject
|
||||
from bonsai.tool.style import Style as subject
|
||||
from ifcopenshell.util.shape_builder import ShapeBuilder
|
||||
|
||||
|
||||
class TestImplementsTool(NewFile):
|
||||
def test_run(self):
|
||||
assert isinstance(subject(), blenderbim.core.tool.Style)
|
||||
assert isinstance(subject(), bonsai.core.tool.Style)
|
||||
|
||||
|
||||
class TestCanSupportRenderingStyle(NewFile):
|
||||
|
||||
@@ -22,14 +22,14 @@ import ifcopenshell
|
||||
import ifcopenshell.api
|
||||
|
||||
import test.bim.bootstrap
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.tool as tool
|
||||
from blenderbim.tool import Surveyor as subject
|
||||
import bonsai.core.tool
|
||||
import bonsai.tool as tool
|
||||
from bonsai.tool import Surveyor as subject
|
||||
|
||||
|
||||
class TestImplementsTool(test.bim.bootstrap.NewFile):
|
||||
def test_run(self):
|
||||
assert isinstance(subject(), blenderbim.core.tool.Surveyor)
|
||||
assert isinstance(subject(), bonsai.core.tool.Surveyor)
|
||||
|
||||
|
||||
class TestGetGlobalMatrix(test.bim.bootstrap.NewFile):
|
||||
|
||||
@@ -19,18 +19,18 @@
|
||||
import bpy
|
||||
import ifcopenshell
|
||||
import ifcopenshell.api
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.tool as tool
|
||||
import bonsai.core.tool
|
||||
import bonsai.tool as tool
|
||||
import numpy as np
|
||||
from test.bim.bootstrap import NewFile
|
||||
from blenderbim.tool.system import System as subject
|
||||
from bonsai.tool.system import System as subject
|
||||
from mathutils import Euler, Vector, Matrix
|
||||
from math import pi
|
||||
|
||||
|
||||
class TestImplementsTool(NewFile):
|
||||
def test_run(self):
|
||||
assert isinstance(subject(), blenderbim.core.tool.System)
|
||||
assert isinstance(subject(), bonsai.core.tool.System)
|
||||
|
||||
|
||||
class TestAddPorts(NewFile):
|
||||
|
||||
@@ -18,15 +18,15 @@
|
||||
|
||||
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.type import Type as subject
|
||||
from bonsai.tool.type import Type as subject
|
||||
|
||||
|
||||
class TestImplementsTool(NewFile):
|
||||
def test_run(self):
|
||||
assert isinstance(subject(), blenderbim.core.tool.Type)
|
||||
assert isinstance(subject(), bonsai.core.tool.Type)
|
||||
|
||||
|
||||
class TestChangeObjectData(NewFile):
|
||||
|
||||
@@ -18,15 +18,15 @@
|
||||
|
||||
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.unit import Unit as subject
|
||||
from bonsai.tool.unit import Unit as subject
|
||||
|
||||
|
||||
class TestImplementsTool(NewFile):
|
||||
def test_run(self):
|
||||
assert isinstance(subject(), blenderbim.core.tool.Unit)
|
||||
assert isinstance(subject(), bonsai.core.tool.Unit)
|
||||
|
||||
|
||||
class TestClearActiveUnit(NewFile):
|
||||
|
||||
Reference in New Issue
Block a user