mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-04 03:04:23 +08:00
Update tests with new required metadata fields
We're changing the validation function of metadata for containers to require the type and name parameters. That needs to be reflected in the tests. Contributes to issue CURA-3Z4.
This commit is contained in:
parent
0f12b012cf
commit
afbadd9260
@ -314,8 +314,8 @@ class TestImportProfile:
|
||||
|
||||
@pytest.mark.parametrize("metadata,result", [(None, False),
|
||||
({}, False),
|
||||
({"setting_version": cura.CuraApplication.CuraApplication.SettingVersion}, True),
|
||||
({"setting_version": 0}, False)])
|
||||
({"setting_version": cura.CuraApplication.CuraApplication.SettingVersion, "type": "some_type", "name": "some_name"}, True),
|
||||
({"setting_version": 0, "type": "some_type", "name": "some_name"}, False)])
|
||||
def test_isMetaDataValid(container_registry, metadata, result):
|
||||
assert container_registry._isMetadataValid(metadata) == result
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user