CURA-11966 Reduce speed on overhang #3974
171 fail, 2 skipped, 23 197 pass in 55s
23 370 tests 23 197 ✅ 55s ⏱️
1 suites 2 💤
1 files 171 ❌
Results for commit 8fc9327.
Annotations
Check warning on line 0 in tests.Settings.TestDefinitionContainer
github-actions / Test Results
test_validateMachineDefinitionContainer[/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/ankermake_m5.def.json] (tests.Settings.TestDefinitionContainer) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
assert False
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/ankermake_m5.def.json'
definition_container = <DefContainer 'cad36cea-ebc2-4f01-9f61-0c587eb2ec1a'>
@pytest.mark.parametrize("file_path", machine_filepaths)
def test_validateMachineDefinitionContainer(file_path, definition_container):
"""Tests all definition containers"""
file_name = os.path.basename(file_path)
if file_name == "fdmprinter.def.json" or file_name == "fdmextruder.def.json":
return # Stop checking, these are root files.
mocked_vum = MagicMock()
mocked_vum.updateFilesData = lambda ct, v, fdl, fnl: FilesDataUpdateResult(ct, v, fdl, fnl)
with patch("UM.VersionUpgradeManager.VersionUpgradeManager.getInstance", MagicMock(return_value = mocked_vum)):
> assertIsDefinitionValid(definition_container, file_path)
Settings/TestDefinitionContainer.py:74:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
definition_container = <DefContainer 'cad36cea-ebc2-4f01-9f61-0c587eb2ec1a'>
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/ankermake_m5.def.json'
def assertIsDefinitionValid(definition_container, file_path):
with open(file_path, encoding = "utf-8") as data:
json = data.read()
parser, is_valid = definition_container.readAndValidateSerialized(json)
> assert is_valid # The definition has invalid JSON structure.
E assert False
Settings/TestDefinitionContainer.py:81: AssertionError
Check warning on line 0 in tests.Settings.TestDefinitionContainer
github-actions / Test Results
test_validateMachineDefinitionContainer[/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/ankermake_m5c.def.json] (tests.Settings.TestDefinitionContainer) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
assert False
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/ankermake_m5c.def.json'
definition_container = <DefContainer '25eb1db6-046c-415f-9087-e069a527b664'>
@pytest.mark.parametrize("file_path", machine_filepaths)
def test_validateMachineDefinitionContainer(file_path, definition_container):
"""Tests all definition containers"""
file_name = os.path.basename(file_path)
if file_name == "fdmprinter.def.json" or file_name == "fdmextruder.def.json":
return # Stop checking, these are root files.
mocked_vum = MagicMock()
mocked_vum.updateFilesData = lambda ct, v, fdl, fnl: FilesDataUpdateResult(ct, v, fdl, fnl)
with patch("UM.VersionUpgradeManager.VersionUpgradeManager.getInstance", MagicMock(return_value = mocked_vum)):
> assertIsDefinitionValid(definition_container, file_path)
Settings/TestDefinitionContainer.py:74:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
definition_container = <DefContainer '25eb1db6-046c-415f-9087-e069a527b664'>
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/ankermake_m5c.def.json'
def assertIsDefinitionValid(definition_container, file_path):
with open(file_path, encoding = "utf-8") as data:
json = data.read()
parser, is_valid = definition_container.readAndValidateSerialized(json)
> assert is_valid # The definition has invalid JSON structure.
E assert False
Settings/TestDefinitionContainer.py:81: AssertionError
Check warning on line 0 in tests.Settings.TestDefinitionContainer
github-actions / Test Results
test_validateMachineDefinitionContainer[/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_asterion.def.json] (tests.Settings.TestDefinitionContainer) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
assert False
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_asterion.def.json'
definition_container = <DefContainer 'f8bf0e56-1754-46f6-aba7-3b0b34384be5'>
@pytest.mark.parametrize("file_path", machine_filepaths)
def test_validateMachineDefinitionContainer(file_path, definition_container):
"""Tests all definition containers"""
file_name = os.path.basename(file_path)
if file_name == "fdmprinter.def.json" or file_name == "fdmextruder.def.json":
return # Stop checking, these are root files.
mocked_vum = MagicMock()
mocked_vum.updateFilesData = lambda ct, v, fdl, fnl: FilesDataUpdateResult(ct, v, fdl, fnl)
with patch("UM.VersionUpgradeManager.VersionUpgradeManager.getInstance", MagicMock(return_value = mocked_vum)):
> assertIsDefinitionValid(definition_container, file_path)
Settings/TestDefinitionContainer.py:74:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
definition_container = <DefContainer 'f8bf0e56-1754-46f6-aba7-3b0b34384be5'>
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_asterion.def.json'
def assertIsDefinitionValid(definition_container, file_path):
with open(file_path, encoding = "utf-8") as data:
json = data.read()
parser, is_valid = definition_container.readAndValidateSerialized(json)
> assert is_valid # The definition has invalid JSON structure.
E assert False
Settings/TestDefinitionContainer.py:81: AssertionError
Check warning on line 0 in tests.Settings.TestDefinitionContainer
github-actions / Test Results
test_validateMachineDefinitionContainer[/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_asterion_ht.def.json] (tests.Settings.TestDefinitionContainer) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
assert False
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_asterion_ht.def.json'
definition_container = <DefContainer 'c1bb8c56-713c-4413-849d-9a6605cf05e0'>
@pytest.mark.parametrize("file_path", machine_filepaths)
def test_validateMachineDefinitionContainer(file_path, definition_container):
"""Tests all definition containers"""
file_name = os.path.basename(file_path)
if file_name == "fdmprinter.def.json" or file_name == "fdmextruder.def.json":
return # Stop checking, these are root files.
mocked_vum = MagicMock()
mocked_vum.updateFilesData = lambda ct, v, fdl, fnl: FilesDataUpdateResult(ct, v, fdl, fnl)
with patch("UM.VersionUpgradeManager.VersionUpgradeManager.getInstance", MagicMock(return_value = mocked_vum)):
> assertIsDefinitionValid(definition_container, file_path)
Settings/TestDefinitionContainer.py:74:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
definition_container = <DefContainer 'c1bb8c56-713c-4413-849d-9a6605cf05e0'>
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_asterion_ht.def.json'
def assertIsDefinitionValid(definition_container, file_path):
with open(file_path, encoding = "utf-8") as data:
json = data.read()
parser, is_valid = definition_container.readAndValidateSerialized(json)
> assert is_valid # The definition has invalid JSON structure.
E assert False
Settings/TestDefinitionContainer.py:81: AssertionError
Check warning on line 0 in tests.Settings.TestDefinitionContainer
github-actions / Test Results
test_validateMachineDefinitionContainer[/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_galaxy_500.def.json] (tests.Settings.TestDefinitionContainer) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
assert False
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_galaxy_500.def.json'
definition_container = <DefContainer '0aae1cbc-34b0-4f87-b15c-f8e2f4896bf7'>
@pytest.mark.parametrize("file_path", machine_filepaths)
def test_validateMachineDefinitionContainer(file_path, definition_container):
"""Tests all definition containers"""
file_name = os.path.basename(file_path)
if file_name == "fdmprinter.def.json" or file_name == "fdmextruder.def.json":
return # Stop checking, these are root files.
mocked_vum = MagicMock()
mocked_vum.updateFilesData = lambda ct, v, fdl, fnl: FilesDataUpdateResult(ct, v, fdl, fnl)
with patch("UM.VersionUpgradeManager.VersionUpgradeManager.getInstance", MagicMock(return_value = mocked_vum)):
> assertIsDefinitionValid(definition_container, file_path)
Settings/TestDefinitionContainer.py:74:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
definition_container = <DefContainer '0aae1cbc-34b0-4f87-b15c-f8e2f4896bf7'>
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_galaxy_500.def.json'
def assertIsDefinitionValid(definition_container, file_path):
with open(file_path, encoding = "utf-8") as data:
json = data.read()
parser, is_valid = definition_container.readAndValidateSerialized(json)
> assert is_valid # The definition has invalid JSON structure.
E assert False
Settings/TestDefinitionContainer.py:81: AssertionError
Check warning on line 0 in tests.Settings.TestDefinitionContainer
github-actions / Test Results
test_validateMachineDefinitionContainer[/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_galaxy_600.def.json] (tests.Settings.TestDefinitionContainer) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
assert False
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_galaxy_600.def.json'
definition_container = <DefContainer '0442c848-86ed-43b7-9546-f322a45324b4'>
@pytest.mark.parametrize("file_path", machine_filepaths)
def test_validateMachineDefinitionContainer(file_path, definition_container):
"""Tests all definition containers"""
file_name = os.path.basename(file_path)
if file_name == "fdmprinter.def.json" or file_name == "fdmextruder.def.json":
return # Stop checking, these are root files.
mocked_vum = MagicMock()
mocked_vum.updateFilesData = lambda ct, v, fdl, fnl: FilesDataUpdateResult(ct, v, fdl, fnl)
with patch("UM.VersionUpgradeManager.VersionUpgradeManager.getInstance", MagicMock(return_value = mocked_vum)):
> assertIsDefinitionValid(definition_container, file_path)
Settings/TestDefinitionContainer.py:74:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
definition_container = <DefContainer '0442c848-86ed-43b7-9546-f322a45324b4'>
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_galaxy_600.def.json'
def assertIsDefinitionValid(definition_container, file_path):
with open(file_path, encoding = "utf-8") as data:
json = data.read()
parser, is_valid = definition_container.readAndValidateSerialized(json)
> assert is_valid # The definition has invalid JSON structure.
E assert False
Settings/TestDefinitionContainer.py:81: AssertionError
Check warning on line 0 in tests.Settings.TestDefinitionContainer
github-actions / Test Results
test_validateMachineDefinitionContainer[/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_signal_pro_300_v1.def.json] (tests.Settings.TestDefinitionContainer) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
assert False
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_signal_pro_300_v1.def.json'
definition_container = <DefContainer 'acd81812-405f-4a72-933f-2923aee29642'>
@pytest.mark.parametrize("file_path", machine_filepaths)
def test_validateMachineDefinitionContainer(file_path, definition_container):
"""Tests all definition containers"""
file_name = os.path.basename(file_path)
if file_name == "fdmprinter.def.json" or file_name == "fdmextruder.def.json":
return # Stop checking, these are root files.
mocked_vum = MagicMock()
mocked_vum.updateFilesData = lambda ct, v, fdl, fnl: FilesDataUpdateResult(ct, v, fdl, fnl)
with patch("UM.VersionUpgradeManager.VersionUpgradeManager.getInstance", MagicMock(return_value = mocked_vum)):
> assertIsDefinitionValid(definition_container, file_path)
Settings/TestDefinitionContainer.py:74:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
definition_container = <DefContainer 'acd81812-405f-4a72-933f-2923aee29642'>
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_signal_pro_300_v1.def.json'
def assertIsDefinitionValid(definition_container, file_path):
with open(file_path, encoding = "utf-8") as data:
json = data.read()
parser, is_valid = definition_container.readAndValidateSerialized(json)
> assert is_valid # The definition has invalid JSON structure.
E assert False
Settings/TestDefinitionContainer.py:81: AssertionError
Check warning on line 0 in tests.Settings.TestDefinitionContainer
github-actions / Test Results
test_validateMachineDefinitionContainer[/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_signal_pro_300_v2.def.json] (tests.Settings.TestDefinitionContainer) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
assert False
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_signal_pro_300_v2.def.json'
definition_container = <DefContainer '5e5abc9d-d287-476f-a0f3-a0c311b921d4'>
@pytest.mark.parametrize("file_path", machine_filepaths)
def test_validateMachineDefinitionContainer(file_path, definition_container):
"""Tests all definition containers"""
file_name = os.path.basename(file_path)
if file_name == "fdmprinter.def.json" or file_name == "fdmextruder.def.json":
return # Stop checking, these are root files.
mocked_vum = MagicMock()
mocked_vum.updateFilesData = lambda ct, v, fdl, fnl: FilesDataUpdateResult(ct, v, fdl, fnl)
with patch("UM.VersionUpgradeManager.VersionUpgradeManager.getInstance", MagicMock(return_value = mocked_vum)):
> assertIsDefinitionValid(definition_container, file_path)
Settings/TestDefinitionContainer.py:74:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
definition_container = <DefContainer '5e5abc9d-d287-476f-a0f3-a0c311b921d4'>
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_signal_pro_300_v2.def.json'
def assertIsDefinitionValid(definition_container, file_path):
with open(file_path, encoding = "utf-8") as data:
json = data.read()
parser, is_valid = definition_container.readAndValidateSerialized(json)
> assert is_valid # The definition has invalid JSON structure.
E assert False
Settings/TestDefinitionContainer.py:81: AssertionError
Check warning on line 0 in tests.Settings.TestDefinitionContainer
github-actions / Test Results
test_validateMachineDefinitionContainer[/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_signal_pro_400_v1.def.json] (tests.Settings.TestDefinitionContainer) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
assert False
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_signal_pro_400_v1.def.json'
definition_container = <DefContainer '6208f9aa-1b9b-459d-82d1-370c64efa60f'>
@pytest.mark.parametrize("file_path", machine_filepaths)
def test_validateMachineDefinitionContainer(file_path, definition_container):
"""Tests all definition containers"""
file_name = os.path.basename(file_path)
if file_name == "fdmprinter.def.json" or file_name == "fdmextruder.def.json":
return # Stop checking, these are root files.
mocked_vum = MagicMock()
mocked_vum.updateFilesData = lambda ct, v, fdl, fnl: FilesDataUpdateResult(ct, v, fdl, fnl)
with patch("UM.VersionUpgradeManager.VersionUpgradeManager.getInstance", MagicMock(return_value = mocked_vum)):
> assertIsDefinitionValid(definition_container, file_path)
Settings/TestDefinitionContainer.py:74:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
definition_container = <DefContainer '6208f9aa-1b9b-459d-82d1-370c64efa60f'>
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_signal_pro_400_v1.def.json'
def assertIsDefinitionValid(definition_container, file_path):
with open(file_path, encoding = "utf-8") as data:
json = data.read()
parser, is_valid = definition_container.readAndValidateSerialized(json)
> assert is_valid # The definition has invalid JSON structure.
E assert False
Settings/TestDefinitionContainer.py:81: AssertionError
Check warning on line 0 in tests.Settings.TestDefinitionContainer
github-actions / Test Results
test_validateMachineDefinitionContainer[/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_signal_pro_400_v2.def.json] (tests.Settings.TestDefinitionContainer) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
assert False
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_signal_pro_400_v2.def.json'
definition_container = <DefContainer 'e708b288-47fc-4568-8350-82041d51dee9'>
@pytest.mark.parametrize("file_path", machine_filepaths)
def test_validateMachineDefinitionContainer(file_path, definition_container):
"""Tests all definition containers"""
file_name = os.path.basename(file_path)
if file_name == "fdmprinter.def.json" or file_name == "fdmextruder.def.json":
return # Stop checking, these are root files.
mocked_vum = MagicMock()
mocked_vum.updateFilesData = lambda ct, v, fdl, fnl: FilesDataUpdateResult(ct, v, fdl, fnl)
with patch("UM.VersionUpgradeManager.VersionUpgradeManager.getInstance", MagicMock(return_value = mocked_vum)):
> assertIsDefinitionValid(definition_container, file_path)
Settings/TestDefinitionContainer.py:74:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
definition_container = <DefContainer 'e708b288-47fc-4568-8350-82041d51dee9'>
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_signal_pro_400_v2.def.json'
def assertIsDefinitionValid(definition_container, file_path):
with open(file_path, encoding = "utf-8") as data:
json = data.read()
parser, is_valid = definition_container.readAndValidateSerialized(json)
> assert is_valid # The definition has invalid JSON structure.
E assert False
Settings/TestDefinitionContainer.py:81: AssertionError
Check warning on line 0 in tests.Settings.TestDefinitionContainer
github-actions / Test Results
test_validateMachineDefinitionContainer[/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_signal_pro_500_v1.def.json] (tests.Settings.TestDefinitionContainer) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
assert False
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_signal_pro_500_v1.def.json'
definition_container = <DefContainer '29064365-3402-4120-864a-6d926f1c04cb'>
@pytest.mark.parametrize("file_path", machine_filepaths)
def test_validateMachineDefinitionContainer(file_path, definition_container):
"""Tests all definition containers"""
file_name = os.path.basename(file_path)
if file_name == "fdmprinter.def.json" or file_name == "fdmextruder.def.json":
return # Stop checking, these are root files.
mocked_vum = MagicMock()
mocked_vum.updateFilesData = lambda ct, v, fdl, fnl: FilesDataUpdateResult(ct, v, fdl, fnl)
with patch("UM.VersionUpgradeManager.VersionUpgradeManager.getInstance", MagicMock(return_value = mocked_vum)):
> assertIsDefinitionValid(definition_container, file_path)
Settings/TestDefinitionContainer.py:74:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
definition_container = <DefContainer '29064365-3402-4120-864a-6d926f1c04cb'>
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_signal_pro_500_v1.def.json'
def assertIsDefinitionValid(definition_container, file_path):
with open(file_path, encoding = "utf-8") as data:
json = data.read()
parser, is_valid = definition_container.readAndValidateSerialized(json)
> assert is_valid # The definition has invalid JSON structure.
E assert False
Settings/TestDefinitionContainer.py:81: AssertionError
Check warning on line 0 in tests.Settings.TestDefinitionContainer
github-actions / Test Results
test_validateMachineDefinitionContainer[/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_signal_pro_500_v2.def.json] (tests.Settings.TestDefinitionContainer) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
assert False
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_signal_pro_500_v2.def.json'
definition_container = <DefContainer 'c6795515-dbfe-4447-aa16-42fe02ebd106'>
@pytest.mark.parametrize("file_path", machine_filepaths)
def test_validateMachineDefinitionContainer(file_path, definition_container):
"""Tests all definition containers"""
file_name = os.path.basename(file_path)
if file_name == "fdmprinter.def.json" or file_name == "fdmextruder.def.json":
return # Stop checking, these are root files.
mocked_vum = MagicMock()
mocked_vum.updateFilesData = lambda ct, v, fdl, fnl: FilesDataUpdateResult(ct, v, fdl, fnl)
with patch("UM.VersionUpgradeManager.VersionUpgradeManager.getInstance", MagicMock(return_value = mocked_vum)):
> assertIsDefinitionValid(definition_container, file_path)
Settings/TestDefinitionContainer.py:74:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
definition_container = <DefContainer 'c6795515-dbfe-4447-aa16-42fe02ebd106'>
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_signal_pro_500_v2.def.json'
def assertIsDefinitionValid(definition_container, file_path):
with open(file_path, encoding = "utf-8") as data:
json = data.read()
parser, is_valid = definition_container.readAndValidateSerialized(json)
> assert is_valid # The definition has invalid JSON structure.
E assert False
Settings/TestDefinitionContainer.py:81: AssertionError
Check warning on line 0 in tests.Settings.TestDefinitionContainer
github-actions / Test Results
test_validateMachineDefinitionContainer[/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_signal_pro_base.def.json] (tests.Settings.TestDefinitionContainer) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
assert False
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_signal_pro_base.def.json'
definition_container = <DefContainer '22b90d1f-eb86-4f4c-8331-c7e0cdc87df2'>
@pytest.mark.parametrize("file_path", machine_filepaths)
def test_validateMachineDefinitionContainer(file_path, definition_container):
"""Tests all definition containers"""
file_name = os.path.basename(file_path)
if file_name == "fdmprinter.def.json" or file_name == "fdmextruder.def.json":
return # Stop checking, these are root files.
mocked_vum = MagicMock()
mocked_vum.updateFilesData = lambda ct, v, fdl, fnl: FilesDataUpdateResult(ct, v, fdl, fnl)
with patch("UM.VersionUpgradeManager.VersionUpgradeManager.getInstance", MagicMock(return_value = mocked_vum)):
> assertIsDefinitionValid(definition_container, file_path)
Settings/TestDefinitionContainer.py:74:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
definition_container = <DefContainer '22b90d1f-eb86-4f4c-8331-c7e0cdc87df2'>
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_signal_pro_base.def.json'
def assertIsDefinitionValid(definition_container, file_path):
with open(file_path, encoding = "utf-8") as data:
json = data.read()
parser, is_valid = definition_container.readAndValidateSerialized(json)
> assert is_valid # The definition has invalid JSON structure.
E assert False
Settings/TestDefinitionContainer.py:81: AssertionError
Check warning on line 0 in tests.Settings.TestDefinitionContainer
github-actions / Test Results
test_validateMachineDefinitionContainer[/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_signal_xl.def.json] (tests.Settings.TestDefinitionContainer) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
assert False
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_signal_xl.def.json'
definition_container = <DefContainer 'a5c0cb4a-e6d9-46f0-9825-14b426862ee2'>
@pytest.mark.parametrize("file_path", machine_filepaths)
def test_validateMachineDefinitionContainer(file_path, definition_container):
"""Tests all definition containers"""
file_name = os.path.basename(file_path)
if file_name == "fdmprinter.def.json" or file_name == "fdmextruder.def.json":
return # Stop checking, these are root files.
mocked_vum = MagicMock()
mocked_vum.updateFilesData = lambda ct, v, fdl, fnl: FilesDataUpdateResult(ct, v, fdl, fnl)
with patch("UM.VersionUpgradeManager.VersionUpgradeManager.getInstance", MagicMock(return_value = mocked_vum)):
> assertIsDefinitionValid(definition_container, file_path)
Settings/TestDefinitionContainer.py:74:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
definition_container = <DefContainer 'a5c0cb4a-e6d9-46f0-9825-14b426862ee2'>
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_signal_xl.def.json'
def assertIsDefinitionValid(definition_container, file_path):
with open(file_path, encoding = "utf-8") as data:
json = data.read()
parser, is_valid = definition_container.readAndValidateSerialized(json)
> assert is_valid # The definition has invalid JSON structure.
E assert False
Settings/TestDefinitionContainer.py:81: AssertionError
Check warning on line 0 in tests.Settings.TestDefinitionContainer
github-actions / Test Results
test_validateMachineDefinitionContainer[/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_signal_xxl.def.json] (tests.Settings.TestDefinitionContainer) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
assert False
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_signal_xxl.def.json'
definition_container = <DefContainer 'eb54140a-44ca-4e7a-809e-2fb7983d841e'>
@pytest.mark.parametrize("file_path", machine_filepaths)
def test_validateMachineDefinitionContainer(file_path, definition_container):
"""Tests all definition containers"""
file_name = os.path.basename(file_path)
if file_name == "fdmprinter.def.json" or file_name == "fdmextruder.def.json":
return # Stop checking, these are root files.
mocked_vum = MagicMock()
mocked_vum.updateFilesData = lambda ct, v, fdl, fnl: FilesDataUpdateResult(ct, v, fdl, fnl)
with patch("UM.VersionUpgradeManager.VersionUpgradeManager.getInstance", MagicMock(return_value = mocked_vum)):
> assertIsDefinitionValid(definition_container, file_path)
Settings/TestDefinitionContainer.py:74:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
definition_container = <DefContainer 'eb54140a-44ca-4e7a-809e-2fb7983d841e'>
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_signal_xxl.def.json'
def assertIsDefinitionValid(definition_container, file_path):
with open(file_path, encoding = "utf-8") as data:
json = data.read()
parser, is_valid = definition_container.readAndValidateSerialized(json)
> assert is_valid # The definition has invalid JSON structure.
E assert False
Settings/TestDefinitionContainer.py:81: AssertionError
Check warning on line 0 in tests.Settings.TestDefinitionContainer
github-actions / Test Results
test_validateMachineDefinitionContainer[/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_signal_xxxl.def.json] (tests.Settings.TestDefinitionContainer) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
assert False
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_signal_xxxl.def.json'
definition_container = <DefContainer '0bebb42a-eead-4b59-b464-7e7d8b7330dd'>
@pytest.mark.parametrize("file_path", machine_filepaths)
def test_validateMachineDefinitionContainer(file_path, definition_container):
"""Tests all definition containers"""
file_name = os.path.basename(file_path)
if file_name == "fdmprinter.def.json" or file_name == "fdmextruder.def.json":
return # Stop checking, these are root files.
mocked_vum = MagicMock()
mocked_vum.updateFilesData = lambda ct, v, fdl, fnl: FilesDataUpdateResult(ct, v, fdl, fnl)
with patch("UM.VersionUpgradeManager.VersionUpgradeManager.getInstance", MagicMock(return_value = mocked_vum)):
> assertIsDefinitionValid(definition_container, file_path)
Settings/TestDefinitionContainer.py:74:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
definition_container = <DefContainer '0bebb42a-eead-4b59-b464-7e7d8b7330dd'>
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/atmat_signal_xxxl.def.json'
def assertIsDefinitionValid(definition_container, file_path):
with open(file_path, encoding = "utf-8") as data:
json = data.read()
parser, is_valid = definition_container.readAndValidateSerialized(json)
> assert is_valid # The definition has invalid JSON structure.
E assert False
Settings/TestDefinitionContainer.py:81: AssertionError
Check warning on line 0 in tests.Settings.TestDefinitionContainer
github-actions / Test Results
test_validateMachineDefinitionContainer[/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/blocks_base.def.json] (tests.Settings.TestDefinitionContainer) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
assert False
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/blocks_base.def.json'
definition_container = <DefContainer 'e6f8b2b7-ca3a-4749-8f15-4ad3549ec233'>
@pytest.mark.parametrize("file_path", machine_filepaths)
def test_validateMachineDefinitionContainer(file_path, definition_container):
"""Tests all definition containers"""
file_name = os.path.basename(file_path)
if file_name == "fdmprinter.def.json" or file_name == "fdmextruder.def.json":
return # Stop checking, these are root files.
mocked_vum = MagicMock()
mocked_vum.updateFilesData = lambda ct, v, fdl, fnl: FilesDataUpdateResult(ct, v, fdl, fnl)
with patch("UM.VersionUpgradeManager.VersionUpgradeManager.getInstance", MagicMock(return_value = mocked_vum)):
> assertIsDefinitionValid(definition_container, file_path)
Settings/TestDefinitionContainer.py:74:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
definition_container = <DefContainer 'e6f8b2b7-ca3a-4749-8f15-4ad3549ec233'>
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/blocks_base.def.json'
def assertIsDefinitionValid(definition_container, file_path):
with open(file_path, encoding = "utf-8") as data:
json = data.read()
parser, is_valid = definition_container.readAndValidateSerialized(json)
> assert is_valid # The definition has invalid JSON structure.
E assert False
Settings/TestDefinitionContainer.py:81: AssertionError
Check warning on line 0 in tests.Settings.TestDefinitionContainer
github-actions / Test Results
test_validateMachineDefinitionContainer[/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/blocks_mkii.def.json] (tests.Settings.TestDefinitionContainer) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
assert False
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/blocks_mkii.def.json'
definition_container = <DefContainer '6ec539ef-a625-4d35-8c30-e5db7deedccb'>
@pytest.mark.parametrize("file_path", machine_filepaths)
def test_validateMachineDefinitionContainer(file_path, definition_container):
"""Tests all definition containers"""
file_name = os.path.basename(file_path)
if file_name == "fdmprinter.def.json" or file_name == "fdmextruder.def.json":
return # Stop checking, these are root files.
mocked_vum = MagicMock()
mocked_vum.updateFilesData = lambda ct, v, fdl, fnl: FilesDataUpdateResult(ct, v, fdl, fnl)
with patch("UM.VersionUpgradeManager.VersionUpgradeManager.getInstance", MagicMock(return_value = mocked_vum)):
> assertIsDefinitionValid(definition_container, file_path)
Settings/TestDefinitionContainer.py:74:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
definition_container = <DefContainer '6ec539ef-a625-4d35-8c30-e5db7deedccb'>
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/blocks_mkii.def.json'
def assertIsDefinitionValid(definition_container, file_path):
with open(file_path, encoding = "utf-8") as data:
json = data.read()
parser, is_valid = definition_container.readAndValidateSerialized(json)
> assert is_valid # The definition has invalid JSON structure.
E assert False
Settings/TestDefinitionContainer.py:81: AssertionError
Check warning on line 0 in tests.Settings.TestDefinitionContainer
github-actions / Test Results
test_validateMachineDefinitionContainer[/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/blocks_one.def.json] (tests.Settings.TestDefinitionContainer) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
assert False
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/blocks_one.def.json'
definition_container = <DefContainer 'b097403f-6d75-474b-8092-d3e654794732'>
@pytest.mark.parametrize("file_path", machine_filepaths)
def test_validateMachineDefinitionContainer(file_path, definition_container):
"""Tests all definition containers"""
file_name = os.path.basename(file_path)
if file_name == "fdmprinter.def.json" or file_name == "fdmextruder.def.json":
return # Stop checking, these are root files.
mocked_vum = MagicMock()
mocked_vum.updateFilesData = lambda ct, v, fdl, fnl: FilesDataUpdateResult(ct, v, fdl, fnl)
with patch("UM.VersionUpgradeManager.VersionUpgradeManager.getInstance", MagicMock(return_value = mocked_vum)):
> assertIsDefinitionValid(definition_container, file_path)
Settings/TestDefinitionContainer.py:74:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
definition_container = <DefContainer 'b097403f-6d75-474b-8092-d3e654794732'>
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/blocks_one.def.json'
def assertIsDefinitionValid(definition_container, file_path):
with open(file_path, encoding = "utf-8") as data:
json = data.read()
parser, is_valid = definition_container.readAndValidateSerialized(json)
> assert is_valid # The definition has invalid JSON structure.
E assert False
Settings/TestDefinitionContainer.py:81: AssertionError
Check warning on line 0 in tests.Settings.TestDefinitionContainer
github-actions / Test Results
test_validateMachineDefinitionContainer[/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/blocks_pros100.def.json] (tests.Settings.TestDefinitionContainer) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
assert False
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/blocks_pros100.def.json'
definition_container = <DefContainer '8999c662-7970-469a-95c1-d3efdcc073e2'>
@pytest.mark.parametrize("file_path", machine_filepaths)
def test_validateMachineDefinitionContainer(file_path, definition_container):
"""Tests all definition containers"""
file_name = os.path.basename(file_path)
if file_name == "fdmprinter.def.json" or file_name == "fdmextruder.def.json":
return # Stop checking, these are root files.
mocked_vum = MagicMock()
mocked_vum.updateFilesData = lambda ct, v, fdl, fnl: FilesDataUpdateResult(ct, v, fdl, fnl)
with patch("UM.VersionUpgradeManager.VersionUpgradeManager.getInstance", MagicMock(return_value = mocked_vum)):
> assertIsDefinitionValid(definition_container, file_path)
Settings/TestDefinitionContainer.py:74:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
definition_container = <DefContainer '8999c662-7970-469a-95c1-d3efdcc073e2'>
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/blocks_pros100.def.json'
def assertIsDefinitionValid(definition_container, file_path):
with open(file_path, encoding = "utf-8") as data:
json = data.read()
parser, is_valid = definition_container.readAndValidateSerialized(json)
> assert is_valid # The definition has invalid JSON structure.
E assert False
Settings/TestDefinitionContainer.py:81: AssertionError
Check warning on line 0 in tests.Settings.TestDefinitionContainer
github-actions / Test Results
test_validateMachineDefinitionContainer[/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/blocks_pros30.def.json] (tests.Settings.TestDefinitionContainer) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
assert False
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/blocks_pros30.def.json'
definition_container = <DefContainer 'cc653d95-220c-488f-9372-1af9cf347353'>
@pytest.mark.parametrize("file_path", machine_filepaths)
def test_validateMachineDefinitionContainer(file_path, definition_container):
"""Tests all definition containers"""
file_name = os.path.basename(file_path)
if file_name == "fdmprinter.def.json" or file_name == "fdmextruder.def.json":
return # Stop checking, these are root files.
mocked_vum = MagicMock()
mocked_vum.updateFilesData = lambda ct, v, fdl, fnl: FilesDataUpdateResult(ct, v, fdl, fnl)
with patch("UM.VersionUpgradeManager.VersionUpgradeManager.getInstance", MagicMock(return_value = mocked_vum)):
> assertIsDefinitionValid(definition_container, file_path)
Settings/TestDefinitionContainer.py:74:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
definition_container = <DefContainer 'cc653d95-220c-488f-9372-1af9cf347353'>
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/blocks_pros30.def.json'
def assertIsDefinitionValid(definition_container, file_path):
with open(file_path, encoding = "utf-8") as data:
json = data.read()
parser, is_valid = definition_container.readAndValidateSerialized(json)
> assert is_valid # The definition has invalid JSON structure.
E assert False
Settings/TestDefinitionContainer.py:81: AssertionError
Check warning on line 0 in tests.Settings.TestDefinitionContainer
github-actions / Test Results
test_validateMachineDefinitionContainer[/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/blocks_r21.def.json] (tests.Settings.TestDefinitionContainer) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
assert False
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/blocks_r21.def.json'
definition_container = <DefContainer '01cd6604-1466-4e8b-a4de-178e3ab5051b'>
@pytest.mark.parametrize("file_path", machine_filepaths)
def test_validateMachineDefinitionContainer(file_path, definition_container):
"""Tests all definition containers"""
file_name = os.path.basename(file_path)
if file_name == "fdmprinter.def.json" or file_name == "fdmextruder.def.json":
return # Stop checking, these are root files.
mocked_vum = MagicMock()
mocked_vum.updateFilesData = lambda ct, v, fdl, fnl: FilesDataUpdateResult(ct, v, fdl, fnl)
with patch("UM.VersionUpgradeManager.VersionUpgradeManager.getInstance", MagicMock(return_value = mocked_vum)):
> assertIsDefinitionValid(definition_container, file_path)
Settings/TestDefinitionContainer.py:74:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
definition_container = <DefContainer '01cd6604-1466-4e8b-a4de-178e3ab5051b'>
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/blocks_r21.def.json'
def assertIsDefinitionValid(definition_container, file_path):
with open(file_path, encoding = "utf-8") as data:
json = data.read()
parser, is_valid = definition_container.readAndValidateSerialized(json)
> assert is_valid # The definition has invalid JSON structure.
E assert False
Settings/TestDefinitionContainer.py:81: AssertionError
Check warning on line 0 in tests.Settings.TestDefinitionContainer
github-actions / Test Results
test_validateMachineDefinitionContainer[/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/blocks_rd50.def.json] (tests.Settings.TestDefinitionContainer) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
assert False
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/blocks_rd50.def.json'
definition_container = <DefContainer 'fcb95d2f-6133-4a72-a38e-9d00479895c8'>
@pytest.mark.parametrize("file_path", machine_filepaths)
def test_validateMachineDefinitionContainer(file_path, definition_container):
"""Tests all definition containers"""
file_name = os.path.basename(file_path)
if file_name == "fdmprinter.def.json" or file_name == "fdmextruder.def.json":
return # Stop checking, these are root files.
mocked_vum = MagicMock()
mocked_vum.updateFilesData = lambda ct, v, fdl, fnl: FilesDataUpdateResult(ct, v, fdl, fnl)
with patch("UM.VersionUpgradeManager.VersionUpgradeManager.getInstance", MagicMock(return_value = mocked_vum)):
> assertIsDefinitionValid(definition_container, file_path)
Settings/TestDefinitionContainer.py:74:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
definition_container = <DefContainer 'fcb95d2f-6133-4a72-a38e-9d00479895c8'>
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/blocks_rd50.def.json'
def assertIsDefinitionValid(definition_container, file_path):
with open(file_path, encoding = "utf-8") as data:
json = data.read()
parser, is_valid = definition_container.readAndValidateSerialized(json)
> assert is_valid # The definition has invalid JSON structure.
E assert False
Settings/TestDefinitionContainer.py:81: AssertionError
Check warning on line 0 in tests.Settings.TestDefinitionContainer
github-actions / Test Results
test_validateMachineDefinitionContainer[/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/blocks_rd50duplicate.def.json] (tests.Settings.TestDefinitionContainer) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
assert False
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/blocks_rd50duplicate.def.json'
definition_container = <DefContainer '4d71ab6e-358c-47e1-869c-a1434ef950dc'>
@pytest.mark.parametrize("file_path", machine_filepaths)
def test_validateMachineDefinitionContainer(file_path, definition_container):
"""Tests all definition containers"""
file_name = os.path.basename(file_path)
if file_name == "fdmprinter.def.json" or file_name == "fdmextruder.def.json":
return # Stop checking, these are root files.
mocked_vum = MagicMock()
mocked_vum.updateFilesData = lambda ct, v, fdl, fnl: FilesDataUpdateResult(ct, v, fdl, fnl)
with patch("UM.VersionUpgradeManager.VersionUpgradeManager.getInstance", MagicMock(return_value = mocked_vum)):
> assertIsDefinitionValid(definition_container, file_path)
Settings/TestDefinitionContainer.py:74:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
definition_container = <DefContainer '4d71ab6e-358c-47e1-869c-a1434ef950dc'>
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/blocks_rd50duplicate.def.json'
def assertIsDefinitionValid(definition_container, file_path):
with open(file_path, encoding = "utf-8") as data:
json = data.read()
parser, is_valid = definition_container.readAndValidateSerialized(json)
> assert is_valid # The definition has invalid JSON structure.
E assert False
Settings/TestDefinitionContainer.py:81: AssertionError
Check warning on line 0 in tests.Settings.TestDefinitionContainer
github-actions / Test Results
test_validateMachineDefinitionContainer[/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/blocks_rd50mirror.def.json] (tests.Settings.TestDefinitionContainer) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
assert False
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/blocks_rd50mirror.def.json'
definition_container = <DefContainer 'd4f4503a-40a5-4431-a74c-2467c68955ca'>
@pytest.mark.parametrize("file_path", machine_filepaths)
def test_validateMachineDefinitionContainer(file_path, definition_container):
"""Tests all definition containers"""
file_name = os.path.basename(file_path)
if file_name == "fdmprinter.def.json" or file_name == "fdmextruder.def.json":
return # Stop checking, these are root files.
mocked_vum = MagicMock()
mocked_vum.updateFilesData = lambda ct, v, fdl, fnl: FilesDataUpdateResult(ct, v, fdl, fnl)
with patch("UM.VersionUpgradeManager.VersionUpgradeManager.getInstance", MagicMock(return_value = mocked_vum)):
> assertIsDefinitionValid(definition_container, file_path)
Settings/TestDefinitionContainer.py:74:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
definition_container = <DefContainer 'd4f4503a-40a5-4431-a74c-2467c68955ca'>
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/blocks_rd50mirror.def.json'
def assertIsDefinitionValid(definition_container, file_path):
with open(file_path, encoding = "utf-8") as data:
json = data.read()
parser, is_valid = definition_container.readAndValidateSerialized(json)
> assert is_valid # The definition has invalid JSON structure.
E assert False
Settings/TestDefinitionContainer.py:81: AssertionError