1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 22:40:12 +01:00

Merge branch 'fix_ipfs_test' into 'master'

Fix ipfs test config

See merge request fdroid/fdroidserver!1226
This commit is contained in:
Jochen Sprickerhof 2022-10-24 09:58:05 +00:00
commit 8533c9cb4b

View File

@ -1526,7 +1526,9 @@ class CommonTest(unittest.TestCase):
@unittest.skipUnless(shutil.which('ipfs_cid'), 'calculate_IPFS_cid needs ipfs_cid')
def test_calculate_IPFS_cid(self):
fdroidserver.common.config = dict()
config = dict()
fdroidserver.common.fill_config_defaults(config)
fdroidserver.common.config = config
self.assertIsNone(fdroidserver.common.calculate_IPFS_cid('FileDoesNotExist'))
self.assertEqual(
fdroidserver.common.calculate_IPFS_cid('urzip.apk'),