mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 21:44:01 -06:00
Expand the createUniqueName test
This commit is contained in:
parent
db604cdd16
commit
f540abbd73
1 changed files with 6 additions and 0 deletions
|
@ -36,6 +36,12 @@ def test_createUniqueName(container_registry):
|
|||
# It should add a #2 to test2
|
||||
assert container_registry.createUniqueName("user", "test", "test2", "nope") == "test2 #2"
|
||||
|
||||
# The provided suggestion is already correct, so nothing to do
|
||||
assert container_registry.createUniqueName("user", "test", "test2 #2", "nope") == "test2 #2"
|
||||
|
||||
# In case we don't provide a new name, use the fallback
|
||||
assert container_registry.createUniqueName("user", "test", "", "nope") == "nope"
|
||||
|
||||
|
||||
## Tests whether addContainer properly converts to ExtruderStack.
|
||||
def test_addContainerExtruderStack(container_registry, definition_container, definition_changes_container):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue