mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-16 16:02:33 +03:00
convert fdroid scanner --exodus to SignatureDataController
This commit is contained in:
parent
d5ef1b2e95
commit
c10633eac5
5 changed files with 142 additions and 116 deletions
|
@ -50,6 +50,11 @@ class TmpPyPath():
|
|||
|
||||
|
||||
def mock_open_to_str(mock):
|
||||
"""
|
||||
helper function for accessing all data written into a
|
||||
unittest.mock.mock_open() instance as a string.
|
||||
"""
|
||||
|
||||
return "".join([
|
||||
x.args[0] for x in mock.mock_calls if str(x).startswith("call().write(")
|
||||
])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue