Improve validation messages #196

Merged
Dalai Felinto merged 7 commits from pr-error-messages into main 2024-07-01 15:22:55 +02:00
Showing only changes of commit 3a811a5002 - Show all commits

View File

@ -109,19 +109,19 @@ EXPECTED_VALIDATION_ERRORS = {
],
},
'invalid-addon-no-init.zip': {
'source': ['An add-on should have an __init__.py file.'],
'source': ['Add-on file missing: <strong>__init__.py</strong>.'],
},
'invalid-addon-dir-no-init.zip': {
'source': ['An add-on should have an __init__.py file.'],
'source': ['Add-on file missing: <strong>__init__.py</strong>.'],
},
'invalid-no-manifest.zip': {
'source': ['The manifest file is missing.'],
},
'invalid-manifest-toml.zip': {'source': ['Could not parse the manifest file.']},
'invalid-theme-multiple-xmls.zip': {'source': ['A theme should have exactly one XML file.']},
'invalid-manifest-toml.zip': {'source': ['Manifest file contains invalid code.']},
'invalid-theme-multiple-xmls.zip': {'source': ['Themes can only contain <strong>one XML file</strong>.']},
'invalid-missing-wheels.zip': {
'source': [
'A declared wheel is missing in the zip file, expected path: addon/wheels/test-wheel-whatever.whl'
'Python wheel missing: <strong>addon/wheels/test-wheel-whatever.whl<strong>'
]
},
}