Skip to content

Commit

Permalink
Fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicOram committed Aug 7, 2024
1 parent 20c8ba4 commit 903c7df
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/i04/callbacks/test_murko_callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,30 +53,30 @@ def test_when_oav_data_arrives_then_murko_not_called(
murko_with_mock_call: MurkoCallback,
):
murko_with_mock_call.event(test_oav_event)
murko_with_mock_call.call_murko.assert_not_called()
murko_with_mock_call.call_murko.assert_not_called() # type: ignore


def test_when_smargon_data_arrives_then_murko_not_called(
murko_with_mock_call: MurkoCallback,
):
murko_with_mock_call.event(test_smargon_event)
murko_with_mock_call.call_murko.assert_not_called()
murko_with_mock_call.call_murko.assert_not_called() # type: ignore


def test_when_smargon_data_arrives_before_oav_data_then_murko_not_called(
murko_with_mock_call: MurkoCallback,
):
murko_with_mock_call.event(test_smargon_event)
murko_with_mock_call.event(test_oav_event)
murko_with_mock_call.call_murko.assert_not_called()
murko_with_mock_call.call_murko.assert_not_called() # type: ignore


def test_when_smargon_data_arrives_before_oav_data_then_murko_called_with_smargon_data(
murko_with_mock_call: MurkoCallback,
):
murko_with_mock_call.event(test_oav_event)
murko_with_mock_call.event(test_smargon_event)
murko_with_mock_call.call_murko.assert_called_once_with(
murko_with_mock_call.call_murko.assert_called_once_with( # type: ignore
test_oav_uuid, test_smargon_data
)

Expand All @@ -99,9 +99,9 @@ def test_when_murko_called_with_event_data_then_meta_data_put_in_redis(
"uuid": test_oav_uuid,
}

murko_callback.redis_client.hset.assert_called_once_with(
murko_callback.redis_client.hset.assert_called_once_with( # type: ignore
"test-metadata", test_oav_uuid, json.dumps(expected_metadata)
)
murko_callback.redis_client.publish.assert_called_once_with(
murko_callback.redis_client.publish.assert_called_once_with( # type: ignore
"murko", json.dumps(expected_metadata)
)

0 comments on commit 903c7df

Please sign in to comment.