Partial fix for intent manager not finding correct profile in test

Only in test.
This commit is contained in:
Ghostkeeper 2019-09-23 15:17:15 +02:00
parent 7d40d962e8
commit 557746a832
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276
4 changed files with 20 additions and 12 deletions

View file

@ -50,10 +50,16 @@ class MockContainer(ContainerInterface, UM.PluginObject.PluginObject):
return default
## Gets a human-readable name for this container.
#
# \return Always returns "MockContainer".
# \return The name from the metadata, or "MockContainer" if there was no
# name provided.
def getName(self):
return "MockContainer"
return self._metadata.get("name", "MockContainer")
## Get whether a container stack is enabled or not.
# \return Always returns True.
@property
def isEnabled(self):
return True
## Get whether the container item is stored on a read only location in the filesystem.
#