Skip to content

Commit

Permalink
Merge pull request Ultimaker#12473 from Ultimaker/CURA-3Z4_crash_name…
Browse files Browse the repository at this point in the history
…_missing

Update tests with new required metadata fields
  • Loading branch information
nallath authored Oct 4, 2023
2 parents aafe38a + afbadd9 commit 05f1074
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Settings/TestCuraContainerRegistry.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@ def test_importProfileSuccess(self, container_registry):

@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

Expand Down

0 comments on commit 05f1074

Please sign in to comment.