Improve validation messages #196
@ -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>'
|
||||
]
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user