-
Notifications
You must be signed in to change notification settings - Fork 1
/
conftest.py
28 lines (25 loc) · 901 Bytes
/
conftest.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
from django.conf import settings
from rdflib.plugins.stores.sparqlstore import SPARQLUpdateStore
def pytest_configure():
triplestore_namespace = 'rdf-test'
triplestore_sparql_endpoint = f'http://localhost:9999/blazegraph/namespace/{triplestore_namespace}/sparql'
settings.configure(
SECRET_KEY='secret',
INSTALLED_APPS = [
'django.contrib.auth',
'django.contrib.sessions',
'django.contrib.contenttypes',
],
REST_FRAMEWORK = {},
RDF_NAMESPACE_ROOT = 'http://localhost:8000/',
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'rdf-test',
}
},
RDFLIB_STORE = SPARQLUpdateStore(
query_endpoint=triplestore_sparql_endpoint,
update_endpoint=triplestore_sparql_endpoint,
),
)