mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-02 09:10:11 +02:00
test of current internal format of mirrors list in config
This commit is contained in:
parent
c4d202f2d8
commit
ceef07d2f2
@ -654,6 +654,18 @@ class IndexTest(unittest.TestCase):
|
|||||||
metadata['webSite'],
|
metadata['webSite'],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def test_add_mirrors_to_repodict(self):
|
||||||
|
"""Test based on the contents of tests/config.py"""
|
||||||
|
repodict = dict()
|
||||||
|
fdroidserver.index.add_mirrors_to_repodict('repo', repodict)
|
||||||
|
self.assertEqual(
|
||||||
|
repodict['mirrors'],
|
||||||
|
[
|
||||||
|
'http://foobarfoobarfoobar.onion/fdroid/repo',
|
||||||
|
'https://foo.bar/fdroid/repo',
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
os.chdir(os.path.dirname(__file__))
|
os.chdir(os.path.dirname(__file__))
|
||||||
|
Loading…
Reference in New Issue
Block a user