[CURA-12568] feasibility investigation #20707
99 fail, 2 skipped, 23 897 pass in 49s
23 998 tests 23 897 ✅ 49s ⏱️
1 suites 2 💤
1 files 99 ❌
Results for commit 0209067.
Annotations
Check warning on line 0 in tests.Machines.TestPlatformMeshes
github-actions / Test Results
test_validatePlatformMeshSizes[/home/runner/work/Cura/Cura/resources/meshes/blackbelt_platform.stl] (tests.Machines.TestPlatformMeshes) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
AssertionError: Platform mesh /home/runner/work/Cura/Cura/resources/meshes/blackbelt_platform.stl should be less than 1024KB. Current file size: 1348.91KB.
assert 1381284 <= 1048576
+ where 1381284 = <function getsize at 0x7f52a97185e0>('/home/runner/work/Cura/Cura/resources/meshes/blackbelt_platform.stl')
+ where <function getsize at 0x7f52a97185e0> = <module 'posixpath' (frozen)>.getsize
+ where <module 'posixpath' (frozen)> = os.path
file_name = '/home/runner/work/Cura/Cura/resources/meshes/blackbelt_platform.stl'
@pytest.mark.parametrize("file_name", platform_mesh_filepaths)
def test_validatePlatformMeshSizes(file_name):
> assert os.path.getsize(file_name) <= MAX_MESH_FILE_SIZE, \
"Platform mesh {} should be less than {}KB. Current file size: {}KB.".format(
file_name,
round(MAX_MESH_FILE_SIZE / 1024),
round(os.path.getsize(file_name) / 1024, 2)
)
E AssertionError: Platform mesh /home/runner/work/Cura/Cura/resources/meshes/blackbelt_platform.stl should be less than 1024KB. Current file size: 1348.91KB.
E assert 1381284 <= 1048576
E + where 1381284 = <function getsize at 0x7f52a97185e0>('/home/runner/work/Cura/Cura/resources/meshes/blackbelt_platform.stl')
E + where <function getsize at 0x7f52a97185e0> = <module 'posixpath' (frozen)>.getsize
E + where <module 'posixpath' (frozen)> = os.path
Machines/TestPlatformMeshes.py:26: AssertionError
Check warning on line 0 in tests.Settings.TestDefinitionContainer
github-actions / Test Results
test_noCategory[/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/custom_belt_printer.def.json] (tests.Settings.TestDefinitionContainer) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
AssertionError: Definition located at [/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/custom_belt_printer.def.json] referenced a category, which is no longer allowed
assert 'category' not in {'author': 'fieldOfView', 'category': 'Custom', 'container_type': <class 'UM.Settings.DefinitionContainer.DefinitionContainer'>, 'file_formats': 'text/x-gcode', ...}
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/custom_belt_printer.def.json'
@pytest.mark.parametrize("file_path", definition_filepaths)
def test_noCategory(file_path):
"""
Categories for definition files have been deprecated. Test that they are not
present.
:param file_path: The path of the machine definition to test.
"""
with open(file_path, encoding = "utf-8") as f:
json = f.read()
metadata = DefinitionContainer.deserializeMetadata(json, "test_container_id")
> assert "category" not in metadata[0], "Definition located at [%s] referenced a category, which is no longer allowed" % file_path
E AssertionError: Definition located at [/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/custom_belt_printer.def.json] referenced a category, which is no longer allowed
E assert 'category' not in {'author': 'fieldOfView', 'category': 'Custom', 'container_type': <class 'UM.Settings.DefinitionContainer.DefinitionContainer'>, 'file_formats': 'text/x-gcode', ...}
Settings/TestDefinitionContainer.py:60: 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/beltprinter.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/beltprinter.def.json'
definition_container = <DefContainer '594af1d8-8ddc-4c22-9665-6191e9d797fe'>
@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 '594af1d8-8ddc-4c22-9665-6191e9d797fe'>
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/beltprinter.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/custom_belt_printer.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/custom_belt_printer.def.json'
definition_container = <DefContainer '85d84050-7da3-4f4e-9b4d-92e11bd6ae28'>
@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 '85d84050-7da3-4f4e-9b4d-92e11bd6ae28'>
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/custom_belt_printer.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_validateOverridingDefaultValue[/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/beltprinter.def.json] (tests.Settings.TestDefinitionContainer) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
AssertionError: Unnecessary default_values for ['layer_0_z_overlap'] in /home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/beltprinter.def.json
assert not {'layer_0_z_overlap'}
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/beltprinter.def.json'
@pytest.mark.parametrize("file_path", definition_filepaths)
def test_validateOverridingDefaultValue(file_path: str):
"""Tests whether setting values are not being hidden by parent containers.
When a definition container defines a "default_value" but inherits from a
definition that defines a "value", the "default_value" is ineffective. This
test fails on those things.
"""
with open(file_path, encoding = "utf-8") as f:
doc = json.load(f)
if "inherits" not in doc:
return # We only want to check for documents where the inheritance overrides the children. If there's no inheritance, this can't happen so it's fine.
if "overrides" not in doc:
return # No settings are being overridden. No need to check anything.
parent_settings = getInheritedSettings(doc["inherits"])
faulty_keys = set()
for key, val in doc["overrides"].items():
if key in parent_settings and "value" in parent_settings[key]:
if "default_value" in val:
faulty_keys.add(key)
> assert not faulty_keys, "Unnecessary default_values for {faulty_keys} in {file_name}".format(faulty_keys = sorted(faulty_keys), file_name = file_path) # If there is a value in the parent settings, then the default_value is not effective.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E AssertionError: Unnecessary default_values for ['layer_0_z_overlap'] in /home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/beltprinter.def.json
E assert not {'layer_0_z_overlap'}
Settings/TestDefinitionContainer.py:114: AssertionError
Check warning on line 0 in tests.Settings.TestDefinitionContainer
github-actions / Test Results
test_noId[/home/runner/work/Cura/Cura/tests/Settings/../../resources/extruders/blackbelt_extruder_0.def.json] (tests.Settings.TestDefinitionContainer) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
AssertionError: Definitions should not have an ID field.
assert 'id' not in {'id': 'blackbelt_extruder_0', 'inherits': 'fdmextruder', 'metadata': {'machine': 'blackbelt', 'position': '0'}, 'name': 'Extruder', ...}
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/extruders/blackbelt_extruder_0.def.json'
@pytest.mark.parametrize("file_path", definition_filepaths)
def test_noId(file_path: str):
"""Verifies that definition contains don't have an ID field.
ID fields are legacy. They should not be used any more. This is legacy that
people don't seem to be able to get used to.
"""
with open(file_path, encoding = "utf-8") as f:
doc = json.load(f)
> assert "id" not in doc, "Definitions should not have an ID field."
E AssertionError: Definitions should not have an ID field.
E assert 'id' not in {'id': 'blackbelt_extruder_0', 'inherits': 'fdmextruder', 'metadata': {'machine': 'blackbelt', 'position': '0'}, 'name': 'Extruder', ...}
Settings/TestDefinitionContainer.py:190: AssertionError
Check warning on line 0 in tests.Settings.TestDefinitionContainer
github-actions / Test Results
test_noId[/home/runner/work/Cura/Cura/tests/Settings/../../resources/extruders/blackbeltvd_extruder_0.def.json] (tests.Settings.TestDefinitionContainer) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
AssertionError: Definitions should not have an ID field.
assert 'id' not in {'id': 'blackbeltvd_extruder_0', 'inherits': 'fdmextruder', 'metadata': {'machine': 'blackbeltvd', 'position': '0'}, 'name': 'Extruder', ...}
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/extruders/blackbeltvd_extruder_0.def.json'
@pytest.mark.parametrize("file_path", definition_filepaths)
def test_noId(file_path: str):
"""Verifies that definition contains don't have an ID field.
ID fields are legacy. They should not be used any more. This is legacy that
people don't seem to be able to get used to.
"""
with open(file_path, encoding = "utf-8") as f:
doc = json.load(f)
> assert "id" not in doc, "Definitions should not have an ID field."
E AssertionError: Definitions should not have an ID field.
E assert 'id' not in {'id': 'blackbeltvd_extruder_0', 'inherits': 'fdmextruder', 'metadata': {'machine': 'blackbeltvd', 'position': '0'}, 'name': 'Extruder', ...}
Settings/TestDefinitionContainer.py:190: AssertionError
Check warning on line 0 in tests.Settings.TestDefinitionContainer
github-actions / Test Results
test_extruderMatch[/home/runner/work/Cura/Cura/tests/Settings/../../resources/extruders/blackbelt_extruder_0.def.json] (tests.Settings.TestDefinitionContainer) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
AssertionError: The machine ID blackbelt is not found.
assert False
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/extruders/blackbelt_extruder_0.def.json'
@pytest.mark.parametrize("file_path", extruder_filepaths)
def test_extruderMatch(file_path: str):
"""
Verifies that extruders say that they work on the same extruder_nr as what is listed in their machine definition.
"""
extruder_id = os.path.basename(file_path).split(".")[0]
with open(file_path, encoding = "utf-8") as f:
doc = json.load(f)
if "metadata" not in doc:
return # May not be desirable either, but it's probably unfinished then.
if "machine" not in doc["metadata"] or "position" not in doc["metadata"]:
return # FDMextruder doesn't have this since it's not linked to a particular printer.
machine = doc["metadata"]["machine"]
position = doc["metadata"]["position"]
# Find the machine definition.
for machine_filepath in machine_filepaths:
machine_id = os.path.basename(machine_filepath).split(".")[0]
if machine_id == machine:
break
else:
> assert False, "The machine ID {machine} is not found.".format(machine = machine)
E AssertionError: The machine ID blackbelt is not found.
E assert False
Settings/TestDefinitionContainer.py:216: AssertionError
Check warning on line 0 in tests.Settings.TestDefinitionContainer
github-actions / Test Results
test_extruderMatch[/home/runner/work/Cura/Cura/tests/Settings/../../resources/extruders/blackbeltvd_extruder_0.def.json] (tests.Settings.TestDefinitionContainer) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
AssertionError: The machine ID blackbeltvd is not found.
assert False
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/extruders/blackbeltvd_extruder_0.def.json'
@pytest.mark.parametrize("file_path", extruder_filepaths)
def test_extruderMatch(file_path: str):
"""
Verifies that extruders say that they work on the same extruder_nr as what is listed in their machine definition.
"""
extruder_id = os.path.basename(file_path).split(".")[0]
with open(file_path, encoding = "utf-8") as f:
doc = json.load(f)
if "metadata" not in doc:
return # May not be desirable either, but it's probably unfinished then.
if "machine" not in doc["metadata"] or "position" not in doc["metadata"]:
return # FDMextruder doesn't have this since it's not linked to a particular printer.
machine = doc["metadata"]["machine"]
position = doc["metadata"]["position"]
# Find the machine definition.
for machine_filepath in machine_filepaths:
machine_id = os.path.basename(machine_filepath).split(".")[0]
if machine_id == machine:
break
else:
> assert False, "The machine ID {machine} is not found.".format(machine = machine)
E AssertionError: The machine ID blackbeltvd is not found.
E assert False
Settings/TestDefinitionContainer.py:216: AssertionError
Check warning on line 0 in tests.Settings.TestDefinitionContainer
github-actions / Test Results
test_noNewSettings[/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/beltprinter.def.json] (tests.Settings.TestDefinitionContainer) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
assert 'settings' not in {'inherits': 'fdmprinter', 'metadata': {'author': 'fieldOfView', 'visible': False}, 'name': 'FDM Printer Base Descript...tion_support_interface': {'enabled': "resolveOrValue('acceleration_enabled') and support_interface_enable"}, ...}, ...}
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/beltprinter.def.json'
@pytest.mark.parametrize("file_path", definition_filepaths)
def test_noNewSettings(file_path: str):
"""
Tests that a printer definition doesn't define any new settings.
Settings that are not common to all printers can cause Cura to crash, for instance when the setting is saved in a
profile and that profile is then used in a different printer.
:param file_path: A path to a definition file to test.
"""
filename = os.path.basename(file_path)
if filename == "fdmprinter.def.json" or filename == "fdmextruder.def.json":
return # FDMPrinter and FDMExtruder, being the basis for all printers and extruders, are allowed to define new settings since they will be available for all printers then.
with open(file_path, encoding = "utf-8") as f:
doc = json.load(f)
> assert "settings" not in doc
E assert 'settings' not in {'inherits': 'fdmprinter', 'metadata': {'author': 'fieldOfView', 'visible': False}, 'name': 'FDM Printer Base Descript...tion_support_interface': {'enabled': "resolveOrValue('acceleration_enabled') and support_interface_enable"}, ...}, ...}
Settings/TestDefinitionContainer.py:246: AssertionError
Check warning on line 0 in tests.Settings.TestDefinitionContainer
github-actions / Test Results
test_noNewSettings[/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/custom_belt_printer.def.json] (tests.Settings.TestDefinitionContainer) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
AssertionError: assert 'settings' not in {'inherits': 'beltprinter', 'metadata': {'author': 'fieldOfView', 'category': 'Custom', 'file_formats': 'text/x-gcode'...ingsAction'], ...}, 'name': 'Custom Belt-style printer', 'overrides': {'machine_depth': {'default_value': 99999}}, ...}
file_path = '/home/runner/work/Cura/Cura/tests/Settings/../../resources/definitions/custom_belt_printer.def.json'
@pytest.mark.parametrize("file_path", definition_filepaths)
def test_noNewSettings(file_path: str):
"""
Tests that a printer definition doesn't define any new settings.
Settings that are not common to all printers can cause Cura to crash, for instance when the setting is saved in a
profile and that profile is then used in a different printer.
:param file_path: A path to a definition file to test.
"""
filename = os.path.basename(file_path)
if filename == "fdmprinter.def.json" or filename == "fdmextruder.def.json":
return # FDMPrinter and FDMExtruder, being the basis for all printers and extruders, are allowed to define new settings since they will be available for all printers then.
with open(file_path, encoding = "utf-8") as f:
doc = json.load(f)
> assert "settings" not in doc
E AssertionError: assert 'settings' not in {'inherits': 'beltprinter', 'metadata': {'author': 'fieldOfView', 'category': 'Custom', 'file_formats': 'text/x-gcode'...ingsAction'], ...}, 'name': 'Custom Belt-style printer', 'overrides': {'machine_depth': {'default_value': 99999}}, ...}
Settings/TestDefinitionContainer.py:246: AssertionError
Check warning on line 0 in tests.Settings.TestProfiles
github-actions / Test Results
test_validateQualityProfiles[/home/runner/work/Cura/Cura/resources/quality/blackbeltvd/blackbeltvd_global_normal.inst.cfg] (tests.Settings.TestProfiles) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
AssertionError: Got an Exception while reading the file [/home/runner/work/Cura/Cura/resources/quality/blackbeltvd/blackbeltvd_global_normal.inst.cfg]: The quality profile /home/runner/work/Cura/Cura/resources/quality/blackbeltvd/blackbeltvd_global_normal.inst.cfg links to an unknown definition (blackbeltvd)
assert 'blackbeltvd' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
assert False
file_name = '/home/runner/work/Cura/Cura/resources/quality/blackbeltvd/blackbeltvd_global_normal.inst.cfg'
@pytest.mark.parametrize("file_name", quality_filepaths)
def test_validateQualityProfiles(file_name):
"""Attempt to load all the quality profiles."""
try:
with open(file_name, encoding = "utf-8") as data:
serialized = data.read()
result = InstanceContainer._readAndValidateSerialized(serialized)
# Fairly obvious, but all the types here should be of the type quality
assert InstanceContainer.getConfigurationTypeFromSerialized(serialized) == "quality"
# All quality profiles must be linked to an existing definition.
> assert result["general"]["definition"] in all_definition_ids, "The quality profile %s links to an unknown definition (%s)" % (file_name, result["general"]["definition"])
E AssertionError: The quality profile /home/runner/work/Cura/Cura/resources/quality/blackbeltvd/blackbeltvd_global_normal.inst.cfg links to an unknown definition (blackbeltvd)
E assert 'blackbeltvd' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
Settings/TestProfiles.py:96: AssertionError
During handling of the above exception, another exception occurred:
file_name = '/home/runner/work/Cura/Cura/resources/quality/blackbeltvd/blackbeltvd_global_normal.inst.cfg'
@pytest.mark.parametrize("file_name", quality_filepaths)
def test_validateQualityProfiles(file_name):
"""Attempt to load all the quality profiles."""
try:
with open(file_name, encoding = "utf-8") as data:
serialized = data.read()
result = InstanceContainer._readAndValidateSerialized(serialized)
# Fairly obvious, but all the types here should be of the type quality
assert InstanceContainer.getConfigurationTypeFromSerialized(serialized) == "quality"
# All quality profiles must be linked to an existing definition.
assert result["general"]["definition"] in all_definition_ids, "The quality profile %s links to an unknown definition (%s)" % (file_name, result["general"]["definition"])
# We don't care what the value is, as long as it's there.
assert result["metadata"].get("quality_type", None) is not None
except Exception as e:
# File can't be read, header sections missing, whatever the case, this shouldn't happen!
> assert False, f"Got an Exception while reading the file [{file_name}]: {e}"
E AssertionError: Got an Exception while reading the file [/home/runner/work/Cura/Cura/resources/quality/blackbeltvd/blackbeltvd_global_normal.inst.cfg]: The quality profile /home/runner/work/Cura/Cura/resources/quality/blackbeltvd/blackbeltvd_global_normal.inst.cfg links to an unknown definition (blackbeltvd)
E assert 'blackbeltvd' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
E assert False
Settings/TestProfiles.py:103: AssertionError
Check warning on line 0 in tests.Settings.TestProfiles
github-actions / Test Results
test_validateQualityProfiles[/home/runner/work/Cura/Cura/resources/quality/blackbeltvd/blackbeltvd_normal.inst.cfg] (tests.Settings.TestProfiles) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
AssertionError: Got an Exception while reading the file [/home/runner/work/Cura/Cura/resources/quality/blackbeltvd/blackbeltvd_normal.inst.cfg]: The quality profile /home/runner/work/Cura/Cura/resources/quality/blackbeltvd/blackbeltvd_normal.inst.cfg links to an unknown definition (blackbeltvd)
assert 'blackbeltvd' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
assert False
file_name = '/home/runner/work/Cura/Cura/resources/quality/blackbeltvd/blackbeltvd_normal.inst.cfg'
@pytest.mark.parametrize("file_name", quality_filepaths)
def test_validateQualityProfiles(file_name):
"""Attempt to load all the quality profiles."""
try:
with open(file_name, encoding = "utf-8") as data:
serialized = data.read()
result = InstanceContainer._readAndValidateSerialized(serialized)
# Fairly obvious, but all the types here should be of the type quality
assert InstanceContainer.getConfigurationTypeFromSerialized(serialized) == "quality"
# All quality profiles must be linked to an existing definition.
> assert result["general"]["definition"] in all_definition_ids, "The quality profile %s links to an unknown definition (%s)" % (file_name, result["general"]["definition"])
E AssertionError: The quality profile /home/runner/work/Cura/Cura/resources/quality/blackbeltvd/blackbeltvd_normal.inst.cfg links to an unknown definition (blackbeltvd)
E assert 'blackbeltvd' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
Settings/TestProfiles.py:96: AssertionError
During handling of the above exception, another exception occurred:
file_name = '/home/runner/work/Cura/Cura/resources/quality/blackbeltvd/blackbeltvd_normal.inst.cfg'
@pytest.mark.parametrize("file_name", quality_filepaths)
def test_validateQualityProfiles(file_name):
"""Attempt to load all the quality profiles."""
try:
with open(file_name, encoding = "utf-8") as data:
serialized = data.read()
result = InstanceContainer._readAndValidateSerialized(serialized)
# Fairly obvious, but all the types here should be of the type quality
assert InstanceContainer.getConfigurationTypeFromSerialized(serialized) == "quality"
# All quality profiles must be linked to an existing definition.
assert result["general"]["definition"] in all_definition_ids, "The quality profile %s links to an unknown definition (%s)" % (file_name, result["general"]["definition"])
# We don't care what the value is, as long as it's there.
assert result["metadata"].get("quality_type", None) is not None
except Exception as e:
# File can't be read, header sections missing, whatever the case, this shouldn't happen!
> assert False, f"Got an Exception while reading the file [{file_name}]: {e}"
E AssertionError: Got an Exception while reading the file [/home/runner/work/Cura/Cura/resources/quality/blackbeltvd/blackbeltvd_normal.inst.cfg]: The quality profile /home/runner/work/Cura/Cura/resources/quality/blackbeltvd/blackbeltvd_normal.inst.cfg links to an unknown definition (blackbeltvd)
E assert 'blackbeltvd' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
E assert False
Settings/TestProfiles.py:103: AssertionError
Check warning on line 0 in tests.Settings.TestProfiles
github-actions / Test Results
test_validateQualityProfiles[/home/runner/work/Cura/Cura/resources/quality/blackbelt/blackbelt_normal.inst.cfg] (tests.Settings.TestProfiles) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
AssertionError: Got an Exception while reading the file [/home/runner/work/Cura/Cura/resources/quality/blackbelt/blackbelt_normal.inst.cfg]: The quality profile /home/runner/work/Cura/Cura/resources/quality/blackbelt/blackbelt_normal.inst.cfg links to an unknown definition (blackbelt)
assert 'blackbelt' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
assert False
file_name = '/home/runner/work/Cura/Cura/resources/quality/blackbelt/blackbelt_normal.inst.cfg'
@pytest.mark.parametrize("file_name", quality_filepaths)
def test_validateQualityProfiles(file_name):
"""Attempt to load all the quality profiles."""
try:
with open(file_name, encoding = "utf-8") as data:
serialized = data.read()
result = InstanceContainer._readAndValidateSerialized(serialized)
# Fairly obvious, but all the types here should be of the type quality
assert InstanceContainer.getConfigurationTypeFromSerialized(serialized) == "quality"
# All quality profiles must be linked to an existing definition.
> assert result["general"]["definition"] in all_definition_ids, "The quality profile %s links to an unknown definition (%s)" % (file_name, result["general"]["definition"])
E AssertionError: The quality profile /home/runner/work/Cura/Cura/resources/quality/blackbelt/blackbelt_normal.inst.cfg links to an unknown definition (blackbelt)
E assert 'blackbelt' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
Settings/TestProfiles.py:96: AssertionError
During handling of the above exception, another exception occurred:
file_name = '/home/runner/work/Cura/Cura/resources/quality/blackbelt/blackbelt_normal.inst.cfg'
@pytest.mark.parametrize("file_name", quality_filepaths)
def test_validateQualityProfiles(file_name):
"""Attempt to load all the quality profiles."""
try:
with open(file_name, encoding = "utf-8") as data:
serialized = data.read()
result = InstanceContainer._readAndValidateSerialized(serialized)
# Fairly obvious, but all the types here should be of the type quality
assert InstanceContainer.getConfigurationTypeFromSerialized(serialized) == "quality"
# All quality profiles must be linked to an existing definition.
assert result["general"]["definition"] in all_definition_ids, "The quality profile %s links to an unknown definition (%s)" % (file_name, result["general"]["definition"])
# We don't care what the value is, as long as it's there.
assert result["metadata"].get("quality_type", None) is not None
except Exception as e:
# File can't be read, header sections missing, whatever the case, this shouldn't happen!
> assert False, f"Got an Exception while reading the file [{file_name}]: {e}"
E AssertionError: Got an Exception while reading the file [/home/runner/work/Cura/Cura/resources/quality/blackbelt/blackbelt_normal.inst.cfg]: The quality profile /home/runner/work/Cura/Cura/resources/quality/blackbelt/blackbelt_normal.inst.cfg links to an unknown definition (blackbelt)
E assert 'blackbelt' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
E assert False
Settings/TestProfiles.py:103: AssertionError
Check warning on line 0 in tests.Settings.TestProfiles
github-actions / Test Results
test_validateQualityProfiles[/home/runner/work/Cura/Cura/resources/quality/blackbelt/blackbelt_global_normal.inst.cfg] (tests.Settings.TestProfiles) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
AssertionError: Got an Exception while reading the file [/home/runner/work/Cura/Cura/resources/quality/blackbelt/blackbelt_global_normal.inst.cfg]: The quality profile /home/runner/work/Cura/Cura/resources/quality/blackbelt/blackbelt_global_normal.inst.cfg links to an unknown definition (blackbelt)
assert 'blackbelt' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
assert False
file_name = '/home/runner/work/Cura/Cura/resources/quality/blackbelt/blackbelt_global_normal.inst.cfg'
@pytest.mark.parametrize("file_name", quality_filepaths)
def test_validateQualityProfiles(file_name):
"""Attempt to load all the quality profiles."""
try:
with open(file_name, encoding = "utf-8") as data:
serialized = data.read()
result = InstanceContainer._readAndValidateSerialized(serialized)
# Fairly obvious, but all the types here should be of the type quality
assert InstanceContainer.getConfigurationTypeFromSerialized(serialized) == "quality"
# All quality profiles must be linked to an existing definition.
> assert result["general"]["definition"] in all_definition_ids, "The quality profile %s links to an unknown definition (%s)" % (file_name, result["general"]["definition"])
E AssertionError: The quality profile /home/runner/work/Cura/Cura/resources/quality/blackbelt/blackbelt_global_normal.inst.cfg links to an unknown definition (blackbelt)
E assert 'blackbelt' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
Settings/TestProfiles.py:96: AssertionError
During handling of the above exception, another exception occurred:
file_name = '/home/runner/work/Cura/Cura/resources/quality/blackbelt/blackbelt_global_normal.inst.cfg'
@pytest.mark.parametrize("file_name", quality_filepaths)
def test_validateQualityProfiles(file_name):
"""Attempt to load all the quality profiles."""
try:
with open(file_name, encoding = "utf-8") as data:
serialized = data.read()
result = InstanceContainer._readAndValidateSerialized(serialized)
# Fairly obvious, but all the types here should be of the type quality
assert InstanceContainer.getConfigurationTypeFromSerialized(serialized) == "quality"
# All quality profiles must be linked to an existing definition.
assert result["general"]["definition"] in all_definition_ids, "The quality profile %s links to an unknown definition (%s)" % (file_name, result["general"]["definition"])
# We don't care what the value is, as long as it's there.
assert result["metadata"].get("quality_type", None) is not None
except Exception as e:
# File can't be read, header sections missing, whatever the case, this shouldn't happen!
> assert False, f"Got an Exception while reading the file [{file_name}]: {e}"
E AssertionError: Got an Exception while reading the file [/home/runner/work/Cura/Cura/resources/quality/blackbelt/blackbelt_global_normal.inst.cfg]: The quality profile /home/runner/work/Cura/Cura/resources/quality/blackbelt/blackbelt_global_normal.inst.cfg links to an unknown definition (blackbelt)
E assert 'blackbelt' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
E assert False
Settings/TestProfiles.py:103: AssertionError
Check warning on line 0 in tests.Settings.TestProfiles
github-actions / Test Results
test_validateVariantProfiles[/home/runner/work/Cura/Cura/resources/variants/blackbelt_15_0.8.inst.cfg] (tests.Settings.TestProfiles) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
AssertionError: Got an exception while reading the file /home/runner/work/Cura/Cura/resources/variants/blackbelt_15_0.8.inst.cfg: The profile /home/runner/work/Cura/Cura/resources/variants/blackbelt_15_0.8.inst.cfg isn't associated with a definition
assert 'blackbelt' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
assert False
file_name = '/home/runner/work/Cura/Cura/resources/variants/blackbelt_15_0.8.inst.cfg'
@pytest.mark.parametrize("file_name", variant_filepaths)
def test_validateVariantProfiles(file_name):
"""Attempt to load all the variant profiles."""
try:
with open(file_name, encoding = "utf-8") as data:
serialized = data.read()
result = InstanceContainer._readAndValidateSerialized(serialized)
# Fairly obvious, but all the types here should be of the type quality
assert InstanceContainer.getConfigurationTypeFromSerialized(serialized) == "variant", "The profile %s should be of type variant, but isn't" % file_name
# All quality profiles must be linked to an existing definition.
> assert result["general"]["definition"] in all_definition_ids, "The profile %s isn't associated with a definition" % file_name
E AssertionError: The profile /home/runner/work/Cura/Cura/resources/variants/blackbelt_15_0.8.inst.cfg isn't associated with a definition
E assert 'blackbelt' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
Settings/TestProfiles.py:136: AssertionError
During handling of the above exception, another exception occurred:
file_name = '/home/runner/work/Cura/Cura/resources/variants/blackbelt_15_0.8.inst.cfg'
@pytest.mark.parametrize("file_name", variant_filepaths)
def test_validateVariantProfiles(file_name):
"""Attempt to load all the variant profiles."""
try:
with open(file_name, encoding = "utf-8") as data:
serialized = data.read()
result = InstanceContainer._readAndValidateSerialized(serialized)
# Fairly obvious, but all the types here should be of the type quality
assert InstanceContainer.getConfigurationTypeFromSerialized(serialized) == "variant", "The profile %s should be of type variant, but isn't" % file_name
# All quality profiles must be linked to an existing definition.
assert result["general"]["definition"] in all_definition_ids, "The profile %s isn't associated with a definition" % file_name
# Check that all the values that we say something about are known.
if "values" in result:
variant_setting_keys = set(result["values"])
# Prune all the comments from the values
variant_setting_keys = {key for key in variant_setting_keys if not key.startswith("#")}
has_unknown_settings = not variant_setting_keys.issubset(all_setting_ids)
if has_unknown_settings:
assert False, "The following setting(s) %s are defined in the variant %s, but not in fdmprinter.def.json" % ([key for key in variant_setting_keys if key not in all_setting_ids], file_name)
except Exception as e:
# File can't be read, header sections missing, whatever the case, this shouldn't happen!
> assert False, "Got an exception while reading the file {file_name}: {err}".format(file_name = file_name, err = str(e))
E AssertionError: Got an exception while reading the file /home/runner/work/Cura/Cura/resources/variants/blackbelt_15_0.8.inst.cfg: The profile /home/runner/work/Cura/Cura/resources/variants/blackbelt_15_0.8.inst.cfg isn't associated with a definition
E assert 'blackbelt' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
E assert False
Settings/TestProfiles.py:149: AssertionError
Check warning on line 0 in tests.Settings.TestProfiles
github-actions / Test Results
test_validateVariantProfiles[/home/runner/work/Cura/Cura/resources/variants/blackbeltvd_45_0.9.inst.cfg] (tests.Settings.TestProfiles) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
AssertionError: Got an exception while reading the file /home/runner/work/Cura/Cura/resources/variants/blackbeltvd_45_0.9.inst.cfg: The profile /home/runner/work/Cura/Cura/resources/variants/blackbeltvd_45_0.9.inst.cfg isn't associated with a definition
assert 'blackbeltvd' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
assert False
file_name = '/home/runner/work/Cura/Cura/resources/variants/blackbeltvd_45_0.9.inst.cfg'
@pytest.mark.parametrize("file_name", variant_filepaths)
def test_validateVariantProfiles(file_name):
"""Attempt to load all the variant profiles."""
try:
with open(file_name, encoding = "utf-8") as data:
serialized = data.read()
result = InstanceContainer._readAndValidateSerialized(serialized)
# Fairly obvious, but all the types here should be of the type quality
assert InstanceContainer.getConfigurationTypeFromSerialized(serialized) == "variant", "The profile %s should be of type variant, but isn't" % file_name
# All quality profiles must be linked to an existing definition.
> assert result["general"]["definition"] in all_definition_ids, "The profile %s isn't associated with a definition" % file_name
E AssertionError: The profile /home/runner/work/Cura/Cura/resources/variants/blackbeltvd_45_0.9.inst.cfg isn't associated with a definition
E assert 'blackbeltvd' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
Settings/TestProfiles.py:136: AssertionError
During handling of the above exception, another exception occurred:
file_name = '/home/runner/work/Cura/Cura/resources/variants/blackbeltvd_45_0.9.inst.cfg'
@pytest.mark.parametrize("file_name", variant_filepaths)
def test_validateVariantProfiles(file_name):
"""Attempt to load all the variant profiles."""
try:
with open(file_name, encoding = "utf-8") as data:
serialized = data.read()
result = InstanceContainer._readAndValidateSerialized(serialized)
# Fairly obvious, but all the types here should be of the type quality
assert InstanceContainer.getConfigurationTypeFromSerialized(serialized) == "variant", "The profile %s should be of type variant, but isn't" % file_name
# All quality profiles must be linked to an existing definition.
assert result["general"]["definition"] in all_definition_ids, "The profile %s isn't associated with a definition" % file_name
# Check that all the values that we say something about are known.
if "values" in result:
variant_setting_keys = set(result["values"])
# Prune all the comments from the values
variant_setting_keys = {key for key in variant_setting_keys if not key.startswith("#")}
has_unknown_settings = not variant_setting_keys.issubset(all_setting_ids)
if has_unknown_settings:
assert False, "The following setting(s) %s are defined in the variant %s, but not in fdmprinter.def.json" % ([key for key in variant_setting_keys if key not in all_setting_ids], file_name)
except Exception as e:
# File can't be read, header sections missing, whatever the case, this shouldn't happen!
> assert False, "Got an exception while reading the file {file_name}: {err}".format(file_name = file_name, err = str(e))
E AssertionError: Got an exception while reading the file /home/runner/work/Cura/Cura/resources/variants/blackbeltvd_45_0.9.inst.cfg: The profile /home/runner/work/Cura/Cura/resources/variants/blackbeltvd_45_0.9.inst.cfg isn't associated with a definition
E assert 'blackbeltvd' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
E assert False
Settings/TestProfiles.py:149: AssertionError
Check warning on line 0 in tests.Settings.TestProfiles
github-actions / Test Results
test_validateVariantProfiles[/home/runner/work/Cura/Cura/resources/variants/blackbelt_45_0.8.inst.cfg] (tests.Settings.TestProfiles) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
AssertionError: Got an exception while reading the file /home/runner/work/Cura/Cura/resources/variants/blackbelt_45_0.8.inst.cfg: The profile /home/runner/work/Cura/Cura/resources/variants/blackbelt_45_0.8.inst.cfg isn't associated with a definition
assert 'blackbelt' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
assert False
file_name = '/home/runner/work/Cura/Cura/resources/variants/blackbelt_45_0.8.inst.cfg'
@pytest.mark.parametrize("file_name", variant_filepaths)
def test_validateVariantProfiles(file_name):
"""Attempt to load all the variant profiles."""
try:
with open(file_name, encoding = "utf-8") as data:
serialized = data.read()
result = InstanceContainer._readAndValidateSerialized(serialized)
# Fairly obvious, but all the types here should be of the type quality
assert InstanceContainer.getConfigurationTypeFromSerialized(serialized) == "variant", "The profile %s should be of type variant, but isn't" % file_name
# All quality profiles must be linked to an existing definition.
> assert result["general"]["definition"] in all_definition_ids, "The profile %s isn't associated with a definition" % file_name
E AssertionError: The profile /home/runner/work/Cura/Cura/resources/variants/blackbelt_45_0.8.inst.cfg isn't associated with a definition
E assert 'blackbelt' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
Settings/TestProfiles.py:136: AssertionError
During handling of the above exception, another exception occurred:
file_name = '/home/runner/work/Cura/Cura/resources/variants/blackbelt_45_0.8.inst.cfg'
@pytest.mark.parametrize("file_name", variant_filepaths)
def test_validateVariantProfiles(file_name):
"""Attempt to load all the variant profiles."""
try:
with open(file_name, encoding = "utf-8") as data:
serialized = data.read()
result = InstanceContainer._readAndValidateSerialized(serialized)
# Fairly obvious, but all the types here should be of the type quality
assert InstanceContainer.getConfigurationTypeFromSerialized(serialized) == "variant", "The profile %s should be of type variant, but isn't" % file_name
# All quality profiles must be linked to an existing definition.
assert result["general"]["definition"] in all_definition_ids, "The profile %s isn't associated with a definition" % file_name
# Check that all the values that we say something about are known.
if "values" in result:
variant_setting_keys = set(result["values"])
# Prune all the comments from the values
variant_setting_keys = {key for key in variant_setting_keys if not key.startswith("#")}
has_unknown_settings = not variant_setting_keys.issubset(all_setting_ids)
if has_unknown_settings:
assert False, "The following setting(s) %s are defined in the variant %s, but not in fdmprinter.def.json" % ([key for key in variant_setting_keys if key not in all_setting_ids], file_name)
except Exception as e:
# File can't be read, header sections missing, whatever the case, this shouldn't happen!
> assert False, "Got an exception while reading the file {file_name}: {err}".format(file_name = file_name, err = str(e))
E AssertionError: Got an exception while reading the file /home/runner/work/Cura/Cura/resources/variants/blackbelt_45_0.8.inst.cfg: The profile /home/runner/work/Cura/Cura/resources/variants/blackbelt_45_0.8.inst.cfg isn't associated with a definition
E assert 'blackbelt' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
E assert False
Settings/TestProfiles.py:149: AssertionError
Check warning on line 0 in tests.Settings.TestProfiles
github-actions / Test Results
test_validateVariantProfiles[/home/runner/work/Cura/Cura/resources/variants/blackbelt_15_0.25.inst.cfg] (tests.Settings.TestProfiles) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
AssertionError: Got an exception while reading the file /home/runner/work/Cura/Cura/resources/variants/blackbelt_15_0.25.inst.cfg: The profile /home/runner/work/Cura/Cura/resources/variants/blackbelt_15_0.25.inst.cfg isn't associated with a definition
assert 'blackbelt' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
assert False
file_name = '/home/runner/work/Cura/Cura/resources/variants/blackbelt_15_0.25.inst.cfg'
@pytest.mark.parametrize("file_name", variant_filepaths)
def test_validateVariantProfiles(file_name):
"""Attempt to load all the variant profiles."""
try:
with open(file_name, encoding = "utf-8") as data:
serialized = data.read()
result = InstanceContainer._readAndValidateSerialized(serialized)
# Fairly obvious, but all the types here should be of the type quality
assert InstanceContainer.getConfigurationTypeFromSerialized(serialized) == "variant", "The profile %s should be of type variant, but isn't" % file_name
# All quality profiles must be linked to an existing definition.
> assert result["general"]["definition"] in all_definition_ids, "The profile %s isn't associated with a definition" % file_name
E AssertionError: The profile /home/runner/work/Cura/Cura/resources/variants/blackbelt_15_0.25.inst.cfg isn't associated with a definition
E assert 'blackbelt' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
Settings/TestProfiles.py:136: AssertionError
During handling of the above exception, another exception occurred:
file_name = '/home/runner/work/Cura/Cura/resources/variants/blackbelt_15_0.25.inst.cfg'
@pytest.mark.parametrize("file_name", variant_filepaths)
def test_validateVariantProfiles(file_name):
"""Attempt to load all the variant profiles."""
try:
with open(file_name, encoding = "utf-8") as data:
serialized = data.read()
result = InstanceContainer._readAndValidateSerialized(serialized)
# Fairly obvious, but all the types here should be of the type quality
assert InstanceContainer.getConfigurationTypeFromSerialized(serialized) == "variant", "The profile %s should be of type variant, but isn't" % file_name
# All quality profiles must be linked to an existing definition.
assert result["general"]["definition"] in all_definition_ids, "The profile %s isn't associated with a definition" % file_name
# Check that all the values that we say something about are known.
if "values" in result:
variant_setting_keys = set(result["values"])
# Prune all the comments from the values
variant_setting_keys = {key for key in variant_setting_keys if not key.startswith("#")}
has_unknown_settings = not variant_setting_keys.issubset(all_setting_ids)
if has_unknown_settings:
assert False, "The following setting(s) %s are defined in the variant %s, but not in fdmprinter.def.json" % ([key for key in variant_setting_keys if key not in all_setting_ids], file_name)
except Exception as e:
# File can't be read, header sections missing, whatever the case, this shouldn't happen!
> assert False, "Got an exception while reading the file {file_name}: {err}".format(file_name = file_name, err = str(e))
E AssertionError: Got an exception while reading the file /home/runner/work/Cura/Cura/resources/variants/blackbelt_15_0.25.inst.cfg: The profile /home/runner/work/Cura/Cura/resources/variants/blackbelt_15_0.25.inst.cfg isn't associated with a definition
E assert 'blackbelt' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
E assert False
Settings/TestProfiles.py:149: AssertionError
Check warning on line 0 in tests.Settings.TestProfiles
github-actions / Test Results
test_validateVariantProfiles[/home/runner/work/Cura/Cura/resources/variants/blackbelt_45_1.0.inst.cfg] (tests.Settings.TestProfiles) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
AssertionError: Got an exception while reading the file /home/runner/work/Cura/Cura/resources/variants/blackbelt_45_1.0.inst.cfg: The profile /home/runner/work/Cura/Cura/resources/variants/blackbelt_45_1.0.inst.cfg isn't associated with a definition
assert 'blackbelt' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
assert False
file_name = '/home/runner/work/Cura/Cura/resources/variants/blackbelt_45_1.0.inst.cfg'
@pytest.mark.parametrize("file_name", variant_filepaths)
def test_validateVariantProfiles(file_name):
"""Attempt to load all the variant profiles."""
try:
with open(file_name, encoding = "utf-8") as data:
serialized = data.read()
result = InstanceContainer._readAndValidateSerialized(serialized)
# Fairly obvious, but all the types here should be of the type quality
assert InstanceContainer.getConfigurationTypeFromSerialized(serialized) == "variant", "The profile %s should be of type variant, but isn't" % file_name
# All quality profiles must be linked to an existing definition.
> assert result["general"]["definition"] in all_definition_ids, "The profile %s isn't associated with a definition" % file_name
E AssertionError: The profile /home/runner/work/Cura/Cura/resources/variants/blackbelt_45_1.0.inst.cfg isn't associated with a definition
E assert 'blackbelt' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
Settings/TestProfiles.py:136: AssertionError
During handling of the above exception, another exception occurred:
file_name = '/home/runner/work/Cura/Cura/resources/variants/blackbelt_45_1.0.inst.cfg'
@pytest.mark.parametrize("file_name", variant_filepaths)
def test_validateVariantProfiles(file_name):
"""Attempt to load all the variant profiles."""
try:
with open(file_name, encoding = "utf-8") as data:
serialized = data.read()
result = InstanceContainer._readAndValidateSerialized(serialized)
# Fairly obvious, but all the types here should be of the type quality
assert InstanceContainer.getConfigurationTypeFromSerialized(serialized) == "variant", "The profile %s should be of type variant, but isn't" % file_name
# All quality profiles must be linked to an existing definition.
assert result["general"]["definition"] in all_definition_ids, "The profile %s isn't associated with a definition" % file_name
# Check that all the values that we say something about are known.
if "values" in result:
variant_setting_keys = set(result["values"])
# Prune all the comments from the values
variant_setting_keys = {key for key in variant_setting_keys if not key.startswith("#")}
has_unknown_settings = not variant_setting_keys.issubset(all_setting_ids)
if has_unknown_settings:
assert False, "The following setting(s) %s are defined in the variant %s, but not in fdmprinter.def.json" % ([key for key in variant_setting_keys if key not in all_setting_ids], file_name)
except Exception as e:
# File can't be read, header sections missing, whatever the case, this shouldn't happen!
> assert False, "Got an exception while reading the file {file_name}: {err}".format(file_name = file_name, err = str(e))
E AssertionError: Got an exception while reading the file /home/runner/work/Cura/Cura/resources/variants/blackbelt_45_1.0.inst.cfg: The profile /home/runner/work/Cura/Cura/resources/variants/blackbelt_45_1.0.inst.cfg isn't associated with a definition
E assert 'blackbelt' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
E assert False
Settings/TestProfiles.py:149: AssertionError
Check warning on line 0 in tests.Settings.TestProfiles
github-actions / Test Results
test_validateVariantProfiles[/home/runner/work/Cura/Cura/resources/variants/blackbeltvd_35_0.6.inst.cfg] (tests.Settings.TestProfiles) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
AssertionError: Got an exception while reading the file /home/runner/work/Cura/Cura/resources/variants/blackbeltvd_35_0.6.inst.cfg: The profile /home/runner/work/Cura/Cura/resources/variants/blackbeltvd_35_0.6.inst.cfg isn't associated with a definition
assert 'blackbeltvd' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
assert False
file_name = '/home/runner/work/Cura/Cura/resources/variants/blackbeltvd_35_0.6.inst.cfg'
@pytest.mark.parametrize("file_name", variant_filepaths)
def test_validateVariantProfiles(file_name):
"""Attempt to load all the variant profiles."""
try:
with open(file_name, encoding = "utf-8") as data:
serialized = data.read()
result = InstanceContainer._readAndValidateSerialized(serialized)
# Fairly obvious, but all the types here should be of the type quality
assert InstanceContainer.getConfigurationTypeFromSerialized(serialized) == "variant", "The profile %s should be of type variant, but isn't" % file_name
# All quality profiles must be linked to an existing definition.
> assert result["general"]["definition"] in all_definition_ids, "The profile %s isn't associated with a definition" % file_name
E AssertionError: The profile /home/runner/work/Cura/Cura/resources/variants/blackbeltvd_35_0.6.inst.cfg isn't associated with a definition
E assert 'blackbeltvd' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
Settings/TestProfiles.py:136: AssertionError
During handling of the above exception, another exception occurred:
file_name = '/home/runner/work/Cura/Cura/resources/variants/blackbeltvd_35_0.6.inst.cfg'
@pytest.mark.parametrize("file_name", variant_filepaths)
def test_validateVariantProfiles(file_name):
"""Attempt to load all the variant profiles."""
try:
with open(file_name, encoding = "utf-8") as data:
serialized = data.read()
result = InstanceContainer._readAndValidateSerialized(serialized)
# Fairly obvious, but all the types here should be of the type quality
assert InstanceContainer.getConfigurationTypeFromSerialized(serialized) == "variant", "The profile %s should be of type variant, but isn't" % file_name
# All quality profiles must be linked to an existing definition.
assert result["general"]["definition"] in all_definition_ids, "The profile %s isn't associated with a definition" % file_name
# Check that all the values that we say something about are known.
if "values" in result:
variant_setting_keys = set(result["values"])
# Prune all the comments from the values
variant_setting_keys = {key for key in variant_setting_keys if not key.startswith("#")}
has_unknown_settings = not variant_setting_keys.issubset(all_setting_ids)
if has_unknown_settings:
assert False, "The following setting(s) %s are defined in the variant %s, but not in fdmprinter.def.json" % ([key for key in variant_setting_keys if key not in all_setting_ids], file_name)
except Exception as e:
# File can't be read, header sections missing, whatever the case, this shouldn't happen!
> assert False, "Got an exception while reading the file {file_name}: {err}".format(file_name = file_name, err = str(e))
E AssertionError: Got an exception while reading the file /home/runner/work/Cura/Cura/resources/variants/blackbeltvd_35_0.6.inst.cfg: The profile /home/runner/work/Cura/Cura/resources/variants/blackbeltvd_35_0.6.inst.cfg isn't associated with a definition
E assert 'blackbeltvd' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
E assert False
Settings/TestProfiles.py:149: AssertionError
Check warning on line 0 in tests.Settings.TestProfiles
github-actions / Test Results
test_validateVariantProfiles[/home/runner/work/Cura/Cura/resources/variants/blackbelt_25_1.0.inst.cfg] (tests.Settings.TestProfiles) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
AssertionError: Got an exception while reading the file /home/runner/work/Cura/Cura/resources/variants/blackbelt_25_1.0.inst.cfg: The profile /home/runner/work/Cura/Cura/resources/variants/blackbelt_25_1.0.inst.cfg isn't associated with a definition
assert 'blackbelt' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
assert False
file_name = '/home/runner/work/Cura/Cura/resources/variants/blackbelt_25_1.0.inst.cfg'
@pytest.mark.parametrize("file_name", variant_filepaths)
def test_validateVariantProfiles(file_name):
"""Attempt to load all the variant profiles."""
try:
with open(file_name, encoding = "utf-8") as data:
serialized = data.read()
result = InstanceContainer._readAndValidateSerialized(serialized)
# Fairly obvious, but all the types here should be of the type quality
assert InstanceContainer.getConfigurationTypeFromSerialized(serialized) == "variant", "The profile %s should be of type variant, but isn't" % file_name
# All quality profiles must be linked to an existing definition.
> assert result["general"]["definition"] in all_definition_ids, "The profile %s isn't associated with a definition" % file_name
E AssertionError: The profile /home/runner/work/Cura/Cura/resources/variants/blackbelt_25_1.0.inst.cfg isn't associated with a definition
E assert 'blackbelt' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
Settings/TestProfiles.py:136: AssertionError
During handling of the above exception, another exception occurred:
file_name = '/home/runner/work/Cura/Cura/resources/variants/blackbelt_25_1.0.inst.cfg'
@pytest.mark.parametrize("file_name", variant_filepaths)
def test_validateVariantProfiles(file_name):
"""Attempt to load all the variant profiles."""
try:
with open(file_name, encoding = "utf-8") as data:
serialized = data.read()
result = InstanceContainer._readAndValidateSerialized(serialized)
# Fairly obvious, but all the types here should be of the type quality
assert InstanceContainer.getConfigurationTypeFromSerialized(serialized) == "variant", "The profile %s should be of type variant, but isn't" % file_name
# All quality profiles must be linked to an existing definition.
assert result["general"]["definition"] in all_definition_ids, "The profile %s isn't associated with a definition" % file_name
# Check that all the values that we say something about are known.
if "values" in result:
variant_setting_keys = set(result["values"])
# Prune all the comments from the values
variant_setting_keys = {key for key in variant_setting_keys if not key.startswith("#")}
has_unknown_settings = not variant_setting_keys.issubset(all_setting_ids)
if has_unknown_settings:
assert False, "The following setting(s) %s are defined in the variant %s, but not in fdmprinter.def.json" % ([key for key in variant_setting_keys if key not in all_setting_ids], file_name)
except Exception as e:
# File can't be read, header sections missing, whatever the case, this shouldn't happen!
> assert False, "Got an exception while reading the file {file_name}: {err}".format(file_name = file_name, err = str(e))
E AssertionError: Got an exception while reading the file /home/runner/work/Cura/Cura/resources/variants/blackbelt_25_1.0.inst.cfg: The profile /home/runner/work/Cura/Cura/resources/variants/blackbelt_25_1.0.inst.cfg isn't associated with a definition
E assert 'blackbelt' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
E assert False
Settings/TestProfiles.py:149: AssertionError
Check warning on line 0 in tests.Settings.TestProfiles
github-actions / Test Results
test_validateVariantProfiles[/home/runner/work/Cura/Cura/resources/variants/blackbelt_35_0.6.inst.cfg] (tests.Settings.TestProfiles) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
AssertionError: Got an exception while reading the file /home/runner/work/Cura/Cura/resources/variants/blackbelt_35_0.6.inst.cfg: The profile /home/runner/work/Cura/Cura/resources/variants/blackbelt_35_0.6.inst.cfg isn't associated with a definition
assert 'blackbelt' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
assert False
file_name = '/home/runner/work/Cura/Cura/resources/variants/blackbelt_35_0.6.inst.cfg'
@pytest.mark.parametrize("file_name", variant_filepaths)
def test_validateVariantProfiles(file_name):
"""Attempt to load all the variant profiles."""
try:
with open(file_name, encoding = "utf-8") as data:
serialized = data.read()
result = InstanceContainer._readAndValidateSerialized(serialized)
# Fairly obvious, but all the types here should be of the type quality
assert InstanceContainer.getConfigurationTypeFromSerialized(serialized) == "variant", "The profile %s should be of type variant, but isn't" % file_name
# All quality profiles must be linked to an existing definition.
> assert result["general"]["definition"] in all_definition_ids, "The profile %s isn't associated with a definition" % file_name
E AssertionError: The profile /home/runner/work/Cura/Cura/resources/variants/blackbelt_35_0.6.inst.cfg isn't associated with a definition
E assert 'blackbelt' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
Settings/TestProfiles.py:136: AssertionError
During handling of the above exception, another exception occurred:
file_name = '/home/runner/work/Cura/Cura/resources/variants/blackbelt_35_0.6.inst.cfg'
@pytest.mark.parametrize("file_name", variant_filepaths)
def test_validateVariantProfiles(file_name):
"""Attempt to load all the variant profiles."""
try:
with open(file_name, encoding = "utf-8") as data:
serialized = data.read()
result = InstanceContainer._readAndValidateSerialized(serialized)
# Fairly obvious, but all the types here should be of the type quality
assert InstanceContainer.getConfigurationTypeFromSerialized(serialized) == "variant", "The profile %s should be of type variant, but isn't" % file_name
# All quality profiles must be linked to an existing definition.
assert result["general"]["definition"] in all_definition_ids, "The profile %s isn't associated with a definition" % file_name
# Check that all the values that we say something about are known.
if "values" in result:
variant_setting_keys = set(result["values"])
# Prune all the comments from the values
variant_setting_keys = {key for key in variant_setting_keys if not key.startswith("#")}
has_unknown_settings = not variant_setting_keys.issubset(all_setting_ids)
if has_unknown_settings:
assert False, "The following setting(s) %s are defined in the variant %s, but not in fdmprinter.def.json" % ([key for key in variant_setting_keys if key not in all_setting_ids], file_name)
except Exception as e:
# File can't be read, header sections missing, whatever the case, this shouldn't happen!
> assert False, "Got an exception while reading the file {file_name}: {err}".format(file_name = file_name, err = str(e))
E AssertionError: Got an exception while reading the file /home/runner/work/Cura/Cura/resources/variants/blackbelt_35_0.6.inst.cfg: The profile /home/runner/work/Cura/Cura/resources/variants/blackbelt_35_0.6.inst.cfg isn't associated with a definition
E assert 'blackbelt' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
E assert False
Settings/TestProfiles.py:149: AssertionError
Check warning on line 0 in tests.Settings.TestProfiles
github-actions / Test Results
test_validateVariantProfiles[/home/runner/work/Cura/Cura/resources/variants/blackbeltvd_45_0.4.inst.cfg] (tests.Settings.TestProfiles) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
AssertionError: Got an exception while reading the file /home/runner/work/Cura/Cura/resources/variants/blackbeltvd_45_0.4.inst.cfg: The profile /home/runner/work/Cura/Cura/resources/variants/blackbeltvd_45_0.4.inst.cfg isn't associated with a definition
assert 'blackbeltvd' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
assert False
file_name = '/home/runner/work/Cura/Cura/resources/variants/blackbeltvd_45_0.4.inst.cfg'
@pytest.mark.parametrize("file_name", variant_filepaths)
def test_validateVariantProfiles(file_name):
"""Attempt to load all the variant profiles."""
try:
with open(file_name, encoding = "utf-8") as data:
serialized = data.read()
result = InstanceContainer._readAndValidateSerialized(serialized)
# Fairly obvious, but all the types here should be of the type quality
assert InstanceContainer.getConfigurationTypeFromSerialized(serialized) == "variant", "The profile %s should be of type variant, but isn't" % file_name
# All quality profiles must be linked to an existing definition.
> assert result["general"]["definition"] in all_definition_ids, "The profile %s isn't associated with a definition" % file_name
E AssertionError: The profile /home/runner/work/Cura/Cura/resources/variants/blackbeltvd_45_0.4.inst.cfg isn't associated with a definition
E assert 'blackbeltvd' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
Settings/TestProfiles.py:136: AssertionError
During handling of the above exception, another exception occurred:
file_name = '/home/runner/work/Cura/Cura/resources/variants/blackbeltvd_45_0.4.inst.cfg'
@pytest.mark.parametrize("file_name", variant_filepaths)
def test_validateVariantProfiles(file_name):
"""Attempt to load all the variant profiles."""
try:
with open(file_name, encoding = "utf-8") as data:
serialized = data.read()
result = InstanceContainer._readAndValidateSerialized(serialized)
# Fairly obvious, but all the types here should be of the type quality
assert InstanceContainer.getConfigurationTypeFromSerialized(serialized) == "variant", "The profile %s should be of type variant, but isn't" % file_name
# All quality profiles must be linked to an existing definition.
assert result["general"]["definition"] in all_definition_ids, "The profile %s isn't associated with a definition" % file_name
# Check that all the values that we say something about are known.
if "values" in result:
variant_setting_keys = set(result["values"])
# Prune all the comments from the values
variant_setting_keys = {key for key in variant_setting_keys if not key.startswith("#")}
has_unknown_settings = not variant_setting_keys.issubset(all_setting_ids)
if has_unknown_settings:
assert False, "The following setting(s) %s are defined in the variant %s, but not in fdmprinter.def.json" % ([key for key in variant_setting_keys if key not in all_setting_ids], file_name)
except Exception as e:
# File can't be read, header sections missing, whatever the case, this shouldn't happen!
> assert False, "Got an exception while reading the file {file_name}: {err}".format(file_name = file_name, err = str(e))
E AssertionError: Got an exception while reading the file /home/runner/work/Cura/Cura/resources/variants/blackbeltvd_45_0.4.inst.cfg: The profile /home/runner/work/Cura/Cura/resources/variants/blackbeltvd_45_0.4.inst.cfg isn't associated with a definition
E assert 'blackbeltvd' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
E assert False
Settings/TestProfiles.py:149: AssertionError
Check warning on line 0 in tests.Settings.TestProfiles
github-actions / Test Results
test_validateVariantProfiles[/home/runner/work/Cura/Cura/resources/variants/blackbelt_45_0.25.inst.cfg] (tests.Settings.TestProfiles) failed
artifacts/test-results/tests/unit_tests_results.xml [took 0s]
Raw output
AssertionError: Got an exception while reading the file /home/runner/work/Cura/Cura/resources/variants/blackbelt_45_0.25.inst.cfg: The profile /home/runner/work/Cura/Cura/resources/variants/blackbelt_45_0.25.inst.cfg isn't associated with a definition
assert 'blackbelt' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
assert False
file_name = '/home/runner/work/Cura/Cura/resources/variants/blackbelt_45_0.25.inst.cfg'
@pytest.mark.parametrize("file_name", variant_filepaths)
def test_validateVariantProfiles(file_name):
"""Attempt to load all the variant profiles."""
try:
with open(file_name, encoding = "utf-8") as data:
serialized = data.read()
result = InstanceContainer._readAndValidateSerialized(serialized)
# Fairly obvious, but all the types here should be of the type quality
assert InstanceContainer.getConfigurationTypeFromSerialized(serialized) == "variant", "The profile %s should be of type variant, but isn't" % file_name
# All quality profiles must be linked to an existing definition.
> assert result["general"]["definition"] in all_definition_ids, "The profile %s isn't associated with a definition" % file_name
E AssertionError: The profile /home/runner/work/Cura/Cura/resources/variants/blackbelt_45_0.25.inst.cfg isn't associated with a definition
E assert 'blackbelt' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
Settings/TestProfiles.py:136: AssertionError
During handling of the above exception, another exception occurred:
file_name = '/home/runner/work/Cura/Cura/resources/variants/blackbelt_45_0.25.inst.cfg'
@pytest.mark.parametrize("file_name", variant_filepaths)
def test_validateVariantProfiles(file_name):
"""Attempt to load all the variant profiles."""
try:
with open(file_name, encoding = "utf-8") as data:
serialized = data.read()
result = InstanceContainer._readAndValidateSerialized(serialized)
# Fairly obvious, but all the types here should be of the type quality
assert InstanceContainer.getConfigurationTypeFromSerialized(serialized) == "variant", "The profile %s should be of type variant, but isn't" % file_name
# All quality profiles must be linked to an existing definition.
assert result["general"]["definition"] in all_definition_ids, "The profile %s isn't associated with a definition" % file_name
# Check that all the values that we say something about are known.
if "values" in result:
variant_setting_keys = set(result["values"])
# Prune all the comments from the values
variant_setting_keys = {key for key in variant_setting_keys if not key.startswith("#")}
has_unknown_settings = not variant_setting_keys.issubset(all_setting_ids)
if has_unknown_settings:
assert False, "The following setting(s) %s are defined in the variant %s, but not in fdmprinter.def.json" % ([key for key in variant_setting_keys if key not in all_setting_ids], file_name)
except Exception as e:
# File can't be read, header sections missing, whatever the case, this shouldn't happen!
> assert False, "Got an exception while reading the file {file_name}: {err}".format(file_name = file_name, err = str(e))
E AssertionError: Got an exception while reading the file /home/runner/work/Cura/Cura/resources/variants/blackbelt_45_0.25.inst.cfg: The profile /home/runner/work/Cura/Cura/resources/variants/blackbelt_45_0.25.inst.cfg isn't associated with a definition
E assert 'blackbelt' in ['atmat_signal_pro_500_v2', 'modix_v3_big120Z', 'SV03', 'fablabbcn_pasteprinter', 'blv_mgn_cube_300', 'seemecnc_v32', ...]
E assert False
Settings/TestProfiles.py:149: AssertionError