From b21edde1bcda14964d64e1251a6e73870ffc43de Mon Sep 17 00:00:00 2001 From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Wed, 11 May 2022 10:43:32 -0700 Subject: [PATCH] Code suggestions Co-Authored-By: Trenton Holmes <797416+stumpylog@users.noreply.github.com> --- src/documents/serialisers.py | 2 +- src/documents/tests/test_api.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/documents/serialisers.py b/src/documents/serialisers.py index a26b67e43..3a765a805 100644 --- a/src/documents/serialisers.py +++ b/src/documents/serialisers.py @@ -511,7 +511,7 @@ class UiSettingsViewSerializer(serializers.ModelSerializer): ] def update(self, instance, validated_data): - super(UiSettingsViewSerializer, self).update(instance, validated_data) + super().update(instance, validated_data) return instance def create(self, validated_data): diff --git a/src/documents/tests/test_api.py b/src/documents/tests/test_api.py index 1b88e6a3d..38a377c15 100644 --- a/src/documents/tests/test_api.py +++ b/src/documents/tests/test_api.py @@ -1384,7 +1384,7 @@ class TestDocumentApiV2(DirectoriesMixin, APITestCase): response = self.client.get(f"/api/ui_settings/", format="json") self.assertNotEqual( response.data["settings"], - [], + "{}", )