Skip to content

Commit

Permalink
use 0.0.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
krokicki committed Sep 16, 2024
1 parent 3f599dd commit d6d4da5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
@pytest.fixture
def get_settings():
settings = Settings()
settings.base_url = HttpUrl('http://testserver')
settings.targets = [
]
return settings
Expand Down
4 changes: 1 addition & 3 deletions tests/test_boto.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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):
Expand Down

0 comments on commit d6d4da5

Please sign in to comment.