Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2667,7 +2667,9 @@ def site(request: httpx.Request) -> httpx.Response:


@pytest.mark.asyncio
async def test_a_site_that_never_says_it_is_ready_fails_the_deploy_naming_why():
async def test_a_site_that_never_says_it_is_ready_fails_the_deploy_naming_why(monkeypatch):
monkeypatch.setattr(env_gateway_provider, "WEBSITE_READY_MARGIN_S", 0)

def site(request: httpx.Request) -> httpx.Response:
if request.url.path.endswith("/.well-known/agent-env.json"):
return httpx.Response(200, json=_READY_CARD)
Expand All @@ -2680,7 +2682,9 @@ def site(request: httpx.Request) -> httpx.Response:


@pytest.mark.asyncio
async def test_a_site_whose_ready_answers_no_website_readiness_is_never_ready_and_the_deploy_says_so():
async def test_a_site_whose_ready_answers_no_website_readiness_is_never_ready_and_the_deploy_says_so(monkeypatch):
monkeypatch.setattr(env_gateway_provider, "WEBSITE_READY_MARGIN_S", 0)

def site(request: httpx.Request) -> httpx.Response:
if request.url.path.endswith("/.well-known/agent-env.json"):
return httpx.Response(200, json=_READY_CARD)
Expand Down