Fix CTD test import after RENCI backend switch

The CTD backend switch in this PR renamed the module constant from
CTD_REQUEST_HEADERS to RENCI_HEADERS (matching the Automat mirror's
provenance), but tests/unit/test_ctd_tool.py still imported the old
name, breaking collection with ImportError. Updated the import and the
single assertion that referenced it.
This commit is contained in:
Shanghua
2026-05-25 20:27:48 -07:00
parent c9e342a1db
commit 557b6bca62
+2 -2
View File
@@ -4,7 +4,7 @@ from unittest.mock import Mock, patch
import pytest
from tooluniverse.ctd_tool import CTD_REQUEST_HEADERS, CTDTool
from tooluniverse.ctd_tool import RENCI_HEADERS, CTDTool
def make_ctd_tool(input_type="gene", report_type="diseases_curated"):
@@ -98,7 +98,7 @@ def test_ctd_request_asks_for_json(mock_get):
tool.run({"input_terms": "TP53"})
assert mock_get.call_args.kwargs["headers"] == CTD_REQUEST_HEADERS
assert mock_get.call_args.kwargs["headers"] == RENCI_HEADERS
@pytest.mark.unit