diff --git a/djangoldp/tests/runner.py b/djangoldp/tests/runner.py index 6a54bedcc61fc29b1f2ad4b65ea7fb08e5ce0c9b..0a663cc11bf0e9aa5f03212a8df8479dc96d4502 100644 --- a/djangoldp/tests/runner.py +++ b/djangoldp/tests/runner.py @@ -8,7 +8,33 @@ settings.configure(DEBUG=True, 'ENGINE': 'django.db.backends.sqlite3', } }, - LDP_RDF_CONTEXT = 'https://cdn.happy-dev.fr/owl/hdcontext.jsonld', + LDP_RDF_CONTEXT = { + "@context": { + "@vocab": "http://happy-dev.fr/owl/#", + "foaf": "http://xmlns.com/foaf/0.1/", + "doap": "http://usefulinc.com/ns/doap#", + "ldp": "http://www.w3.org/ns/ldp#", + "rdfs": "http://www.w3.org/2000/01/rdf-schema#", + "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#", + "xsd": "http://www.w3.org/2001/XMLSchema#", + "geo": "http://www.w3.org/2003/01/geo/wgs84_pos#", + "acl": "http://www.w3.org/ns/auth/acl#", + "name": "rdfs:label", + "website": "foaf:homepage", + "deadline": "xsd:dateTime", + "lat": "geo:lat", + "lng": "geo:long", + "jabberID": "foaf:jabberID", + "permissions": "acl:accessControl", + "mode": "acl:mode", + "view": "acl:Read", + "change": "acl:Write", + "add": "acl:Append", + "delete": "acl:Delete", + "control": "acl:Control" + } + } + , ROOT_URLCONF='djangoldp.tests.urls', DJANGOLDP_PACKAGES=['djangoldp.tests'], INSTALLED_APPS=('django.contrib.auth', diff --git a/djangoldp/tests/tests_auto_author.py b/djangoldp/tests/tests_auto_author.py index d2d1064e80b0aabb03335e6193301e74efab6eda..5ed5505afab78ffb3f164338322826c598561ea9 100644 --- a/djangoldp/tests/tests_auto_author.py +++ b/djangoldp/tests/tests_auto_author.py @@ -16,7 +16,6 @@ class TestAutoAuthor(APITestCase): def test_save_with_anonymous_user(self): post = { - '@context': "http://owl.openinitiative.com/oicontext.jsonld", '@graph': [{'http://happy-dev.fr/owl/#content': "post content"}]} response = self.client.post('/posts/', data=json.dumps(post), content_type='application/ld+json')