Skip to content

Commit e6af54b

Browse files
use API_BASE_URL
1 parent bf308bb commit e6af54b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

fourinsight/engineroom/utils/_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ def truncate(self, before=None, after=None):
557557
def _get_all_previous_file_names(app_id, session):
558558
"""query all available results file from the EngineRoom application. Returns list of dicts"""
559559
response = session.get(
560-
f"https://api.4insight.io/v1.0/Applications/{app_id}/results"
560+
f"{API_BASE_URL}/v1.0/Applications/{app_id}/results"
561561
)
562562
response.raise_for_status()
563563
results = response.json()

tests/test_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1307,7 +1307,7 @@ def test_successful_response(self, previous_file_names):
13071307
results = _get_all_previous_file_names(app_id, self.mock_session)
13081308
assert results == previous_file_names
13091309
self.mock_session.get.assert_called_once_with(
1310-
f"https://api.4insight.io/v1.0/Applications/{app_id}/results"
1310+
f"{API_BASE_URL}/v1.0/Applications/{app_id}/results"
13111311
)
13121312
self.mock_response.raise_for_status.assert_called_once()
13131313

0 commit comments

Comments
 (0)