diff --git a/tests/conftest.py b/tests/conftest.py index ad28b3208..00459869b 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 0c3b084f9..2eeed8599 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"