Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-Jess committed Oct 29, 2023
1 parent 27b971c commit 363cb73
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions backend/tests/sublet/test_sublets.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def test_browse_sublets(self):
old_id = json.loads(response.content)["id"]
response = self.client.get("/sublet/properties/")
res_json = json.loads(response.content)
self.assertEqual(1+first_length, len(res_json))
self.assertEqual(1 + first_length, len(res_json))
sublet = Sublet.objects.get(id=old_id)
self.assertEqual(sublet.title, "Test Sublet1")
self.assertEqual(sublet.address, "1234 Test Street")
Expand All @@ -125,9 +125,8 @@ def test_browse_sublet(self):
"amenities": ["Amenity1", "Amenity2"],
}
self.client.post("/sublet/properties/", payload)
response = self.client.get(
f"/sublet/properties/{str(Sublet.objects.get(subletter=self.user,title='Test Sublet2').id)}/"
)
test_sublet = Sublet.objects.get(subletter=self.user, title="Test Sublet2")
response = self.client.get(f"/sublet/properties/{str(test_sublet.id)}/")
res_json = json.loads(response.content)
self.assertEqual(res_json["title"], "Test Sublet2")
self.assertEqual(res_json["address"], "1234 Test Street")
Expand Down

0 comments on commit 363cb73

Please sign in to comment.