Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Sorokin <[email protected]>
  • Loading branch information
DimedS committed Mar 5, 2024
1 parent 2b36ddd commit 2735206
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions kedro-telemetry/tests/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def test_before_command_run(self, mocker, fake_metadata):
mocked_anon_id.return_value = "digested"
mocker.patch("kedro_telemetry.plugin.PACKAGE_NAME", "spaceflights")
mocker.patch(
"kedro_telemetry.plugin._get_hashed_username",
"kedro_telemetry.plugin._get_or_create_uuid",
return_value="hashed_username",
)

Expand Down Expand Up @@ -177,7 +177,7 @@ def test_before_command_run_with_tools(self, mocker, fake_metadata):
mocked_anon_id.return_value = "digested"
mocker.patch("kedro_telemetry.plugin.PACKAGE_NAME", "spaceflights")
mocker.patch(
"kedro_telemetry.plugin._get_hashed_username",
"kedro_telemetry.plugin._get_or_create_uuid",
return_value="hashed_username",
)

Expand Down Expand Up @@ -474,7 +474,7 @@ def test_after_context_created_without_kedro_run( # noqa: PLR0913
mocker.patch("kedro_telemetry.plugin._hash", return_value="digested")
mocker.patch("kedro_telemetry.plugin.PACKAGE_NAME", "spaceflights")
mocker.patch(
"kedro_telemetry.plugin._get_hashed_username",
"kedro_telemetry.plugin._get_or_create_uuid",
return_value="hashed_username",
)
mocked_heap_call = mocker.patch("kedro_telemetry.plugin._send_heap_event")
Expand Down Expand Up @@ -530,7 +530,7 @@ def test_after_context_created_with_kedro_run( # noqa: PLR0913
mocker.patch("kedro_telemetry.plugin._hash", return_value="digested")
mocker.patch("kedro_telemetry.plugin.PACKAGE_NAME", "spaceflights")
mocker.patch(
"kedro_telemetry.plugin._get_hashed_username",
"kedro_telemetry.plugin._get_or_create_uuid",
return_value="hashed_username",
)
mocked_heap_call = mocker.patch("kedro_telemetry.plugin._send_heap_event")
Expand Down Expand Up @@ -589,7 +589,7 @@ def test_after_context_created_with_kedro_run_and_tools( # noqa: PLR0913
mocker.patch("kedro_telemetry.plugin._hash", return_value="digested")
mocker.patch("kedro_telemetry.plugin.PACKAGE_NAME", "spaceflights")
mocker.patch(
"kedro_telemetry.plugin._get_hashed_username",
"kedro_telemetry.plugin._get_or_create_uuid",
return_value="hashed_username",
)
mocked_heap_call = mocker.patch("kedro_telemetry.plugin._send_heap_event")
Expand Down

0 comments on commit 2735206

Please sign in to comment.