mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 03:07:53 -06:00
Partial fix for intent manager not finding correct profile in test
Only in test.
This commit is contained in:
parent
7d40d962e8
commit
557746a832
4 changed files with 20 additions and 12 deletions
|
@ -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.
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue