Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
BelousSofiya committed Dec 11, 2023
1 parent 12014e3 commit 05e71e0
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions images/tests/test_logo.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ def test_get_empty_logo_unauthorized(self):
self.assertEqual({"logo_image": None}, response.json())

def test_get_logo_unauthorized(self):
response = self.client.get(
path=f"/api/logo/{self.company_dnipro.id}/"
)
response = self.client.get(path=f"/api/logo/{self.company_dnipro.id}/")
self.assertEqual(200, response.status_code)
self.assertEqual(
{
Expand All @@ -63,9 +61,7 @@ def test_get_logo_unauthorized(self):

def test_get_logo_authorized(self):
self.client.force_authenticate(self.user)
response = self.client.get(
path=f"/api/logo/{self.company_dnipro.id}/"
)
response = self.client.get(path=f"/api/logo/{self.company_dnipro.id}/")
self.assertEqual(200, response.status_code)
self.assertEqual(
{
Expand Down Expand Up @@ -119,10 +115,6 @@ def test_put_logo_authorized_owner_wrong_image(self):
)
self.assertEqual(400, response.status_code)
self.assertEqual(
{
"logo_image": [
"Image size exceeds the maximum allowed (10MB)."
]
},
{"logo_image": ["Image size exceeds the maximum allowed (10MB)."]},
response.json(),
)

0 comments on commit 05e71e0

Please sign in to comment.