Skip to content

Commit 917f3ef

Browse files
committed
removed assert_called_once for Python3.5
1 parent a693e26 commit 917f3ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/sap/aibus/dar/client/test_model_manager_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ def test_read_job_by_model_name(self, model_manager_client: ModelManagerClient):
475475
)
476476
response = model_manager_client.read_job_by_model_name("my-model-1")
477477
assert response["modelName"] == "my-model-1"
478-
model_manager_client.read_job_collection.assert_called_once()
478+
assert model_manager_client.read_job_collection.call_count == 1
479479

480480
def test_read_job_by_model_name_job_not_found(
481481
self, model_manager_client: ModelManagerClient
@@ -492,7 +492,7 @@ def test_read_job_by_model_name_job_not_found(
492492
model_manager_client.read_job_by_model_name("my-model-3")
493493
expected_message = "Job with model name 'my-model-3' could not be found"
494494
assert str(exc.value) == expected_message
495-
model_manager_client.read_job_collection.assert_called_once()
495+
assert model_manager_client.read_job_collection.call_count == 1
496496

497497
@staticmethod
498498
def _make_job_resource(state):

0 commit comments

Comments
 (0)