mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 07:33:57 -06:00
Add test for spaces in definition IDs
Contributes to issue CURA-7201.
This commit is contained in:
parent
a168e9f8a6
commit
a8ccec709f
1 changed files with 8 additions and 0 deletions
|
@ -36,6 +36,14 @@ def definition_container():
|
||||||
assert result.getId() == uid
|
assert result.getId() == uid
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
@pytest.mark.parametrize("file_path", definition_filepaths)
|
||||||
|
def test_definitionIds(file_path):
|
||||||
|
"""
|
||||||
|
Test the validity of the definition IDs.
|
||||||
|
:param file_path: The path of the machine definition to test.
|
||||||
|
"""
|
||||||
|
definition_id = os.path.basename(file_path).split(".")[0]
|
||||||
|
assert " " not in definition_id # Definition IDs are not allowed to have spaces.
|
||||||
|
|
||||||
## Tests all definition containers
|
## Tests all definition containers
|
||||||
@pytest.mark.parametrize("file_path", machine_filepaths)
|
@pytest.mark.parametrize("file_path", machine_filepaths)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue