mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-19 21:30:10 +01:00
Merge branch 'fix_ipfs_test' into 'master'
Fix ipfs test config See merge request fdroid/fdroidserver!1226
This commit is contained in:
commit
8533c9cb4b
@ -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'),
|
||||
|
Loading…
Reference in New Issue
Block a user