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

Merge branch '109-404' into 'master'

Resolve "404 on empty containers"

Closes #109

See merge request startinblox/djangoldp-packages/djangoldp!53
parents 3fd5b441 c6674071
No related branches found
No related tags found
1 merge request!53Resolve "404 on empty containers"
Pipeline #879 passed with stage
in 1 minute and 22 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