mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2025-12-24 02:39:20 -05:00
fixed sync test
This commit is contained in:
@@ -43,9 +43,9 @@ class TestApiSyncLog(TestViews):
|
|||||||
def test_sync_log_update(self):
|
def test_sync_log_update(self):
|
||||||
# read only view
|
# read only view
|
||||||
r = self.admin_client_1.patch(reverse('api:synclog-detail', args={self.sync.id}), {'path': 'new'}, content_type='application/json')
|
r = self.admin_client_1.patch(reverse('api:synclog-detail', args={self.sync.id}), {'path': 'new'}, content_type='application/json')
|
||||||
self.assertEqual(r.status_code, 403)
|
self.assertEqual(r.status_code, 405)
|
||||||
|
|
||||||
def test_sync_log_delete(self):
|
def test_sync_log_delete(self):
|
||||||
# read only view
|
# read only view
|
||||||
r = self.admin_client_1.delete(reverse('api:synclog-detail', args={self.sync.id}))
|
r = self.admin_client_1.delete(reverse('api:synclog-detail', args={self.sync.id}))
|
||||||
self.assertEqual(r.status_code, 403)
|
self.assertEqual(r.status_code, 405)
|
||||||
|
|||||||
Reference in New Issue
Block a user