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 Jan 30, 2025
1 parent 5b11483 commit 79f941b
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions kolibri/core/discovery/test/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,15 +207,24 @@ def test_return_no_reserved_locations(self):

def test_update_connection_status(self):
from django.db.utils import IntegrityError

self.login(self.superuser)
try:
response = self.client.post(
reverse("kolibri:core:networklocation-update-connection-status", args=[self.studio_non_reserved_location.id]),
reverse(
"kolibri:core:networklocation-update-connection-status",
args=[self.studio_non_reserved_location.id],
),
)
import ipdb;ipdb.set_trace()
except IntegrityError as e:
self.fail("NetworkLocation.operating_system has no default value set: {}".format(e))
import ipdb

ipdb.set_trace()
except IntegrityError as e:
self.fail(
"NetworkLocation.operating_system has no default value set: {}".format(
e
)
)


class PinnedDeviceAPITestCase(APITestCase):
Expand Down

0 comments on commit 79f941b

Please sign in to comment.