Code suggestions

Co-Authored-By: Trenton Holmes <797416+stumpylog@users.noreply.github.com>
This commit is contained in:
Michael Shamoon 2022-05-11 10:43:32 -07:00
parent 1953a8ecb7
commit b21edde1bc
2 changed files with 2 additions and 2 deletions

View File

@ -511,7 +511,7 @@ class UiSettingsViewSerializer(serializers.ModelSerializer):
] ]
def update(self, instance, validated_data): def update(self, instance, validated_data):
super(UiSettingsViewSerializer, self).update(instance, validated_data) super().update(instance, validated_data)
return instance return instance
def create(self, validated_data): def create(self, validated_data):

View File

@ -1384,7 +1384,7 @@ class TestDocumentApiV2(DirectoriesMixin, APITestCase):
response = self.client.get(f"/api/ui_settings/", format="json") response = self.client.get(f"/api/ui_settings/", format="json")
self.assertNotEqual( self.assertNotEqual(
response.data["settings"], response.data["settings"],
[], "{}",
) )