mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 06:30:27 +03:00
purge config.py handling, it is no longer supported
This commit is contained in:
parent
cb9533bd74
commit
642499ec94
11 changed files with 117 additions and 225 deletions
|
|
@ -38,8 +38,8 @@ class IndexTest(unittest.TestCase):
|
|||
cls.index_v1_jar = basedir / 'repo' / 'index-v1.jar'
|
||||
|
||||
def setUp(self):
|
||||
(basedir / 'config.py').chmod(0o600)
|
||||
os.chdir(basedir) # so read_config() can find config.py
|
||||
(basedir / 'config.yml').chmod(0o600)
|
||||
os.chdir(basedir) # so read_config() can find config.yml
|
||||
|
||||
common.config = None
|
||||
common.options = Options
|
||||
|
|
@ -380,8 +380,7 @@ class IndexTest(unittest.TestCase):
|
|||
with zipfile.ZipFile(jarfile, 'w', zipfile.ZIP_DEFLATED) as jar:
|
||||
jar.writestr('publishsigkeys.json', json.dumps(sigkeyfps))
|
||||
publish.sign_sig_key_fingerprint_list(jarfile)
|
||||
with open('config.py', 'w'):
|
||||
pass
|
||||
Path('config.yml').write_text('')
|
||||
|
||||
index.v1_sort_packages(
|
||||
i, common.load_stats_fdroid_signing_key_fingerprints()
|
||||
|
|
@ -701,7 +700,7 @@ class IndexTest(unittest.TestCase):
|
|||
)
|
||||
|
||||
def test_add_mirrors_to_repodict(self):
|
||||
"""Test based on the contents of tests/config.py"""
|
||||
"""Test based on the contents of tests/config.yml"""
|
||||
repodict = {'address': common.config['repo_url']}
|
||||
index.add_mirrors_to_repodict('repo', repodict)
|
||||
self.assertEqual(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue