mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-14 03:00:29 +03:00
fix: minor bugs in testcases for: common, metadata, update
This commit is contained in:
parent
28ec93c587
commit
5d5617bf40
3 changed files with 6 additions and 4 deletions
|
|
@ -49,7 +49,9 @@ class SignaturesTest(unittest.TestCase):
|
|||
'99fbb3211ef5d7c1253f3a7ad4836eadc9905103ce6a75916c40de2831958284'),
|
||||
)
|
||||
for path, checksum in filesAndHashes:
|
||||
self.assertTrue(os.path.isfile(path))
|
||||
self.assertTrue(os.path.isfile(path),
|
||||
msg="check whether '{path}' was extracted "
|
||||
"correctly.".format(path=path))
|
||||
with open(path, 'rb') as f:
|
||||
self.assertEqual(hashlib.sha256(f.read()).hexdigest(), checksum)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue