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

update: improve tests

parent d8e36019
No related branches found
No related tags found
1 merge request!92update: improve tests
Pipeline #1094 passed
......@@ -258,7 +258,7 @@ class Save(TestCase):
def test_nested_container(self):
resource = Resource.objects.create()
body = {
'title': "new job",
'http://happy-dev.fr/owl/#title': "new job",
}
response = self.client.post('/resources/{}/joboffers/'.format(resource.pk),
......@@ -266,6 +266,7 @@ class Save(TestCase):
content_type='application/ld+json')
self.assertEqual(response.status_code, 201)
self.assertEqual(response.data['resources']['ldp:contains'][0]['@id'], "http://testserver/resources/{}/".format(resource.pk))
self.assertEqual(response.data['title'], "new job")
def test_embedded_context_2(self):
body = {
......
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