Unlinking elements is now a bit more stable. Also simplify core tool namespace.

This commit is contained in:
Dion Moult
2021-10-05 09:51:51 +11:00
parent e8764c58b5
commit 216029ea10
29 changed files with 397 additions and 383 deletions
+28
View File
@@ -77,6 +77,20 @@ def owner():
prophet.verify()
@pytest.fixture
def voider():
prophet = Prophecy(blenderbim.core.tool.Voider)
yield prophet
prophet.verify()
@pytest.fixture
def selector():
prophet = Prophecy(blenderbim.core.tool.Selector)
yield prophet
prophet.verify()
@pytest.fixture
def surveyor():
prophet = Prophecy(blenderbim.core.tool.Surveyor)
@@ -84,6 +98,20 @@ def surveyor():
prophet.verify()
@pytest.fixture
def collector():
prophet = Prophecy(blenderbim.core.tool.Collector)
yield prophet
prophet.verify()
@pytest.fixture
def container():
prophet = Prophecy(blenderbim.core.tool.Container)
yield prophet
prophet.verify()
class Prophecy:
def __init__(self, cls):
self.subject = cls