mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-04 16:31:05 +03:00
better exception and waring message when yaml metadata checks fail; build flags check optional
This commit is contained in:
parent
0d005ab83a
commit
6a06944945
2 changed files with 18 additions and 15 deletions
|
@ -149,6 +149,7 @@ class MetadataTest(unittest.TestCase):
|
|||
RepoType: git
|
||||
Builds: []
|
||||
bad: value"""))
|
||||
mf.name = 'mock_filename.yaml'
|
||||
with mock.patch('fdroidserver.metadata.warnings_action', 'error'):
|
||||
with self.assertRaises(MetaDataException):
|
||||
fdroidserver.metadata.parse_yaml_metadata(mf, {})
|
||||
|
@ -159,6 +160,7 @@ class MetadataTest(unittest.TestCase):
|
|||
RepoType: git
|
||||
Builds:
|
||||
- bad: value"""))
|
||||
mf.name = 'mock_filename.yaml'
|
||||
with mock.patch('fdroidserver.metadata.warnings_action', 'error'):
|
||||
with self.assertRaises(MetaDataException):
|
||||
fdroidserver.metadata.parse_yaml_metadata(mf, {})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue