mirror of
https://github.com/mims-harvard/ToolUniverse.git
synced 2026-09-19 07:31:47 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user