Fix bug where copying objects did not necessarily retain the existing context assignment

This commit is contained in:
Dion Moult
2021-10-19 19:14:05 +11:00
parent 816059eefd
commit 6478601f79
11 changed files with 316 additions and 63 deletions
+20 -13
View File
@@ -42,6 +42,20 @@ def aggregate():
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()
@pytest.fixture
def context():
prophet = Prophecy(blenderbim.core.tool.Context)
@@ -78,15 +92,8 @@ def owner():
@pytest.fixture
def type():
prophet = Prophecy(blenderbim.core.tool.Type)
yield prophet
prophet.verify()
@pytest.fixture
def voider():
prophet = Prophecy(blenderbim.core.tool.Voider)
def root():
prophet = Prophecy(blenderbim.core.tool.Root)
yield prophet
prophet.verify()
@@ -113,15 +120,15 @@ def surveyor():
@pytest.fixture
def collector():
prophet = Prophecy(blenderbim.core.tool.Collector)
def type():
prophet = Prophecy(blenderbim.core.tool.Type)
yield prophet
prophet.verify()
@pytest.fixture
def container():
prophet = Prophecy(blenderbim.core.tool.Container)
def voider():
prophet = Prophecy(blenderbim.core.tool.Voider)
yield prophet
prophet.verify()