Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/HH-205210' into EXP-86639
Browse files Browse the repository at this point in the history
  • Loading branch information
HH ReleaseBot committed Jan 29, 2024
2 parents 94ccef2 + 3efc40e commit 4123e46
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions frontik/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,15 @@ def _setup_client_server(
self.http_client = app_client

@pytest.fixture(autouse=True)
def setup_mock_client(self):
with aioresponses(passthrough=['http://127.0.0.1']) as mock_client:
def setup_mock_client(self, passthrow_hosts):
with aioresponses(passthrough=passthrow_hosts) as mock_client:
self.mock_client = mock_client
yield self.mock_client

@pytest.fixture()
def passthrow_hosts(self):
return ['http://127.0.0.1', 'http://localhost']

async def fetch(
self,
path: str,
Expand Down

0 comments on commit 4123e46

Please sign in to comment.