Skip to content
Snippets Groups Projects
Commit c6674071 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
1 merge request!53Resolve "404 on empty containers"
Pipeline #876 passed with stage
in 1 minute and 21 seconds
......@@ -35,3 +35,8 @@ 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)
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