Skip to content

Commit

Permalink
[pre-commit.ci lite] apply automatic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci-lite[bot] authored Nov 25, 2024
1 parent 493f5f5 commit 8da072b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions kolibri/core/device/test/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,12 @@ def test_create_superuser_error(self):
def test_osuser_superuser_created(self):
with mock.patch(
"kolibri.core.device.serializers.GetOSUserHook", autospec=True
) as mock_hook1, mock.patch("kolibri.core.auth.models.GetOSUserHook") as mock_hook2:
mock_hook1.retrieve_os_user.return_value = mock_hook2.retrieve_os_user.return_value = ("test_user", True)
) as mock_hook1, mock.patch(
"kolibri.core.auth.models.GetOSUserHook"
) as mock_hook2:
mock_hook1.retrieve_os_user.return_value = (
mock_hook2.retrieve_os_user.return_value
) = ("test_user", True)
mock_hook1.is_registered = mock_hook2.is_registered = True
initialize_url = app_initialize_url(auth_token="test")
self.client.get(initialize_url)
Expand Down

0 comments on commit 8da072b

Please sign in to comment.