Clean up and refactor a bit

This commit is contained in:
Thu Trang Pham
2020-11-08 07:47:39 -08:00
parent b845e57285
commit c586100098
2 changed files with 11 additions and 12 deletions
-1
View File
@@ -105,7 +105,6 @@ class TestAdminConfirmMixin(TestCase):
response = self.client.post(
f'/admin/market/shop/{shop.id}/change/', data)
# Redirects to changelist
print(response)
self.assertEqual(response.status_code, 302)
self.assertEqual(response.url, '/admin/market/shop/')
# Shop has changed