Skip to content
Snippets Groups Projects
Commit e41a429a authored by Sylvain Le Bon's avatar Sylvain Le Bon
Browse files

Merge branch 'django4'

parents 87925305 4c0cf34e
No related branches found
No related tags found
No related merge requests found
Pipeline #15276 passed
......@@ -77,10 +77,12 @@ class LDPViewSet(APITestCase):
response = self.client.get('/circles/', HTTP_ACCEPT_MODEL_FIELDS=fields_shape)
self.assertEqual(response.status_code, status.HTTP_200_OK)
response_data_keys = response.data['ldp:contains'][0].keys()
self.assertEqual(len(response_data_keys), 3)
self.assertIn(len(response_data_keys), (3,4))
self.assertIn('@id', response_data_keys)
self.assertIn('name', response_data_keys)
self.assertIn('@type', response_data_keys)
if len(response_data_keys)>3:
self.assertIn('@context', response_data_keys)
def test_search_fields_basic(self):
self.setUpLoggedInUser()
......
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