Skip to content
Snippets Groups Projects
Commit f0222d5f authored by Jean-Baptiste's avatar Jean-Baptiste
Browse files

update: add test for 404 on containers. It's already fixed

parent 3fd5b441
No related branches found
No related tags found
No related merge requests found
Pipeline #875 failed
......@@ -35,3 +35,9 @@ class TestGET(APITestCase):
self.assertIn('permissions', response.data)
self.assertEquals(1, len(response.data['permissions'])) # read only
def test_get_empty_container(self):
Post.objects.all().delete()
response = self.client.get('/posts/', content_type='application/ld+json')
self.assertEqual(response.status_code, 200)
self.assertEquals([], response.data)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment