test(api): Fix order of s3 backend initializartion

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2709>
environments/review-docs-v2-ov-8q6uyo/deployments/19325
Georg Krause 2024-02-06 12:33:51 +00:00 zatwierdzone przez Marge
rodzic b4920af0b8
commit 5ca8691feb
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -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://")