Skip to content

Commit 86a894d

Browse files
committed
Remove test_data_folder_contents as we no longer need to manually map HOST_DATA_FOLDER to CONTAINER_DATA_FOLDER
1 parent c744a9d commit 86a894d

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

tests/api/test_app.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
"""Test functions in /src/api/app/main.py."""
22

3-
import os
4-
from pathlib import Path
5-
63
import pytest
74
import requests
85

@@ -29,26 +26,3 @@ def test_local_start_api_and_healthy(ocr_forwarding_api_port: str) -> None:
2926
def test_check_services(check_container_healthy: bool) -> None:
3027
"""Test OCR API Docker services are up."""
3128
assert check_container_healthy, "Docker services not running. Required for full API testing."
32-
33-
34-
def test_data_folder_contents() -> None:
35-
"""
36-
Test documents data folder correct for testing.
37-
38-
For testing, env variable HOST_DATA_FOLDER should mount /tests/data/single_synthetic_doc
39-
to CONTAINER_DATA_FOLDER, which should be /data inside the container.
40-
There should be a single test PDF file (ms-note-one-page.pdf) inside.
41-
"""
42-
assert "single_synthetic_doc" in str(os.getenv("HOST_DATA_FOLDER")), (
43-
"For testing, HOST_DATA_FOLDER should point at /tests/data/single_synthetic_doc. "
44-
"Check environment variables if this fails. "
45-
f"HOST_DATA_FOLDER: {os.getenv('HOST_DATA_FOLDER')}"
46-
)
47-
assert "data" in str(os.getenv("CONTAINER_DATA_FOLDER")), (
48-
"CONTAINER_DATA_FOLDER should point at /data."
49-
"Check environment variables if this fails. "
50-
f"CONTAINER_DATA_FOLDER: {os.getenv('CONTAINER_DATA_FOLDER')}"
51-
)
52-
53-
test_pdf_file_path = Path(str(os.getenv("HOST_DATA_FOLDER"))) / "ms-note-one-page.pdf"
54-
assert test_pdf_file_path.is_file(), f"File at {test_pdf_file_path} not found."

0 commit comments

Comments
 (0)