mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-16 20:20:29 +03:00
do not delete yml metadata when raumel not installed
This commit is contained in:
parent
0885303672
commit
8e5232076f
2 changed files with 14 additions and 9 deletions
|
|
@ -110,8 +110,8 @@ class RewriteMetaTest(unittest.TestCase):
|
|||
with open('metadata/a.txt', 'w') as f:
|
||||
f.write('Auto Name:a')
|
||||
|
||||
def boom(mf, app):
|
||||
raise FDroidException()
|
||||
def boom(*args):
|
||||
raise FDroidException(' '.join((str(x) for x in args)))
|
||||
|
||||
with mock.patch('fdroidserver.metadata.write_yaml', boom):
|
||||
with self.assertRaises(FDroidException):
|
||||
|
|
@ -128,10 +128,10 @@ class RewriteMetaTest(unittest.TestCase):
|
|||
with open('metadata/a.yml', 'w') as f:
|
||||
f.write('AutoName: a')
|
||||
|
||||
def boom(mf, app):
|
||||
raise FDroidException()
|
||||
def boom(*args):
|
||||
raise FDroidException(' '.join((str(x) for x in args)))
|
||||
|
||||
with mock.patch('fdroidserver.metadata.write_yaml', boom):
|
||||
with mock.patch('importlib.util.find_spec', boom):
|
||||
with self.assertRaises(FDroidException):
|
||||
rewritemeta.main()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue