From d6d4da51b6a6b0af0d7d32c72a33afdc138b8c09 Mon Sep 17 00:00:00 2001 From: Konrad Rokicki Date: Mon, 16 Sep 2024 16:23:28 -0400 Subject: [PATCH] use 0.0.0.0 --- tests/test_base.py | 1 - tests/test_boto.py | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/test_base.py b/tests/test_base.py index ad2c26e..ef353fa 100644 --- a/tests/test_base.py +++ b/tests/test_base.py @@ -13,7 +13,6 @@ @pytest.fixture def get_settings(): settings = Settings() - settings.base_url = HttpUrl('http://testserver') settings.targets = [ ] return settings diff --git a/tests/test_boto.py b/tests/test_boto.py index c0228da..9df7824 100644 --- a/tests/test_boto.py +++ b/tests/test_boto.py @@ -13,8 +13,6 @@ @pytest.fixture(scope="module") def get_settings(): settings = Settings() - settings.base_url = HttpUrl('http://testserver') - settings.virtual_buckets = True settings.targets = [ Target( name='janelia-data-examples', @@ -36,7 +34,7 @@ def app(get_settings): @pytest.fixture def s3_client(): # Avoid "botocore.exceptions.NoCredentialsError: Unable to locate credentials" by giving dummy credentials - return boto3.client('s3', endpoint_url=f"http://localhost:{PORT}", region_name='us-east-1', aws_access_key_id='NONE', aws_secret_access_key='NONE') + return boto3.client('s3', endpoint_url=f"http://0.0.0.0:{PORT}", region_name='us-east-1', aws_access_key_id='NONE', aws_secret_access_key='NONE') def test_acl(app, s3_client):