From 7489662eb816abc002a57afbd9d6f66f9476ed68 Mon Sep 17 00:00:00 2001 From: Daniel Mannarino Date: Sun, 15 Dec 2024 22:12:05 -0500 Subject: [PATCH] Fix (intermittant?) bug in httpd fixture --- tests/conftest.py | 2 +- tests/routes/datasets/test_versions.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index ad28b320..00459869 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -223,7 +223,7 @@ def httpd(): t.join() -@pytest.fixture(autouse=True) +@pytest.fixture(autouse=True, scope="function") def flush_request_list(httpd): """Delete request cache before every test.""" _ = httpx.delete(f"http://localhost:{httpd.server_port}") diff --git a/tests/routes/datasets/test_versions.py b/tests/routes/datasets/test_versions.py index 0c3b084f..2eeed859 100755 --- a/tests/routes/datasets/test_versions.py +++ b/tests/routes/datasets/test_versions.py @@ -519,7 +519,7 @@ async def test_version_post_append(async_client: AsyncClient): @pytest.mark.hanging @pytest.mark.asyncio -async def test_version_put_raster_bug_fixes(async_client: AsyncClient): +async def test_version_put_raster_bug_fixes(async_client: AsyncClient, httpd): """Test bug fixes for raster source version operations.""" dataset = "test_version_put_raster_minimal_args"