index: fix git-mirror size check for GitLab Pages

The test case had the wrong folder setup, this was confirmed on a production
repo setup.
This commit is contained in:
Hans-Christoph Steiner 2022-11-15 11:25:28 +01:00
parent 3f5a6870f5
commit 2e134429af
No known key found for this signature in database
GPG key ID: 3E177817BA1B9BFA
2 changed files with 5 additions and 3 deletions

View file

@ -373,8 +373,9 @@ class IndexTest(unittest.TestCase):
def test_gitlab_get_mirror_service_urls(self):
with tempfile.TemporaryDirectory() as tmpdir, TmpCwd(tmpdir):
os.mkdir('fdroid')
with Path('fdroid/placeholder').open('w') as fp:
git_mirror_path = Path('git-mirror/fdroid')
git_mirror_path.mkdir(parents=True)
with (git_mirror_path / 'placeholder').open('w') as fp:
fp.write(' ')
for url in [
'git@gitlab.com:group/project',