1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-21 04:10:37 +02:00

fix: avoid making the parent directory redundantly in test case

This commit is contained in:
Hans-Christoph Steiner 2024-04-06 05:49:49 +00:00 committed by proletarius101
parent ca5e9a089c
commit 4acab21d81
No known key found for this signature in database

View File

@ -172,7 +172,7 @@ class DeployTest(unittest.TestCase):
def test_update_serverwebroot_in_index_only_mode(self):
os.chdir(self.testdir)
repo = Path('repo')
repo.mkdir(parents=True)
repo.mkdir()
fake_apk = repo / 'fake.apk'
with fake_apk.open('w') as fp:
fp.write('not an APK, but has the right filename')