Rename some_material to some_instance

This way we can semantically use it in place of other instances on the stack as well without changing our test.

Contributes to issue CURA-3497.
This commit is contained in:
Ghostkeeper 2017-03-22 15:51:45 +01:00
parent 007f764471
commit 60b6b72912
No known key found for this signature in database
GPG key ID: C5F96EE2BC0F7E75
7 changed files with 7 additions and 7 deletions

View file

@ -31,7 +31,7 @@ def test_loadTypes(filename, output_class, container_registry):
UM.Settings.ContainerStack.setContainerRegistry(container_registry)
Resources.getAllResourcesOfType = unittest.mock.MagicMock(return_value = [os.path.join(os.path.dirname(os.path.abspath(__file__)), "stacks", filename)]) #Return just this tested file.
def findContainers(id, container_type = 0):
if id == "some_material" or id == "some_definition":
if id == "some_instance" or id == "some_definition":
return [UM.Settings.ContainerRegistry._EmptyInstanceContainer(id)]
else:
return []