test(api): Fix order of s3 backend initializartion

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2709>
This commit is contained in:
Georg Krause 2024-02-06 12:33:51 +00:00 committed by Petitminion
parent 11665ba00e
commit 6b782907fe
1 changed files with 1 additions and 2 deletions

View File

@ -135,9 +135,8 @@ def test_transcode_file(name, expected):
def test_custom_s3_domain(factories, settings):
"""See #2220"""
settings.DEFAULT_FILE_STORAGE = "funkwhale_api.common.storage.ASCIIS3Boto3Storage"
settings.AWS_S3_CUSTOM_DOMAIN = "my.custom.domain.tld"
settings.DEFAULT_FILE_STORAGE = "funkwhale_api.common.storage.ASCIIS3Boto3Storage"
f = factories["music.Upload"].build(audio_file__filename="test.mp3")
print(f.audio_file.url)
assert f.audio_file.url.startswith("https://")