Skip to content

Commit

Permalink
Fix API tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
zypriafl committed Nov 30, 2023
1 parent 2ef532a commit 4455c8c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,6 @@ def test_get_all_project_ais(
):
# Setup
sample_data = {"AI_DATA": "AI_SAMPLE_DATA"}
host = 'https://app.konfuzio.com'

mock_session.return_value.get.return_value.status_code = 200
mock_json_loads.return_value = sample_data
Expand All @@ -519,10 +518,11 @@ def test_get_all_project_ais(
}
)

from konfuzio_sdk.api import konfuzio_session
# Ensure the mock methods were called with the correct arguments
mock_get_extraction_url.assert_called_once_with(1, host)
mock_get_splitting_url.assert_called_once_with(1, host)
mock_get_categorization_url.assert_called_once_with(1, host)
mock_get_extraction_url.assert_called_once_with(1, konfuzio_session().host)
mock_get_splitting_url.assert_called_once_with(1, konfuzio_session().host)
mock_get_categorization_url.assert_called_once_with(1, konfuzio_session().host)


def test_init_env():
Expand Down

0 comments on commit 4455c8c

Please sign in to comment.