From ede58db32b9f45e2bb1dbab3e3dd66b7b4fbb1cd Mon Sep 17 00:00:00 2001 From: Jan-Frederik Schmidt Date: Fri, 17 Jan 2025 13:50:54 +0100 Subject: [PATCH] revert: Revert non-working integration test (#3) (#5) This reverts commit c7cbd6b6b0eda0d9e4f6e6e2818a447849bd402a. --- tests/conftest.py | 1 - tests/integration/test_serve_projects.py | 17 ----------------- 2 files changed, 18 deletions(-) delete mode 100644 tests/integration/test_serve_projects.py diff --git a/tests/conftest.py b/tests/conftest.py index 5106140..3ab1110 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -69,7 +69,6 @@ def dummy_projects_dir_fixture(tmp_path: Path) -> Generator[Path, None, None]: for version in versions: path = tmp_path / project_name / version path.mkdir(parents=True) - (path / "index.html").write_text(f"This is {version} of {project_name}") # Create dummy hidden directory to make sure listing ignores this (tmp_path / ".dummy_hidden").mkdir() diff --git a/tests/integration/test_serve_projects.py b/tests/integration/test_serve_projects.py deleted file mode 100644 index 7e3e09b..0000000 --- a/tests/integration/test_serve_projects.py +++ /dev/null @@ -1,17 +0,0 @@ -"""Contains integration tests for serving the static documentation files.""" - -from pathlib import Path - -import requests - -from tests.conftest import DUMMY_DOCS_STRUCTURE -from tests.utils import start_vdoc_server_and_get_uri -from vdoc.constants import CONFIG_ENV_PREFIX - - -def test_serve_static_projects(dummy_projects_dir: Path) -> None: - with start_vdoc_server_and_get_uri(env={f"{CONFIG_ENV_PREFIX}DOCS_DIR": str(dummy_projects_dir)}) as server_uri: - for project_name, versions in DUMMY_DOCS_STRUCTURE.items(): - for version in versions: - result = requests.get(f"{server_uri}/static/projects/{project_name}/{version}", timeout=1) - assert result.text == f"This is {version} of {project_name}"