From 6925327da5db7abbdfca61bff22bb356a1bc76c2 Mon Sep 17 00:00:00 2001
From: Jean-Baptiste <bleme@pm.me>
Date: Mon, 18 Mar 2019 17:35:31 +0100
Subject: [PATCH] syntax: Fix CI

---
 djangoldp/tests/runner.py            | 28 +++++++++++++++++++++++++++-
 djangoldp/tests/tests_auto_author.py |  1 -
 2 files changed, 27 insertions(+), 2 deletions(-)

diff --git a/djangoldp/tests/runner.py b/djangoldp/tests/runner.py
index 6a54bedc..0a663cc1 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 d2d1064e..5ed5505a 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')
-- 
GitLab