Skip to content

Commit

Permalink
Integrate PR #70
Browse files Browse the repository at this point in the history
  • Loading branch information
Marius Conjeaud committed May 21, 2024
1 parent 8d63fae commit 126d17a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 25 deletions.
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pytest>=7.1
pytest-django>=3.10.0
pytest-django>=4.5.2
pytest-cov>=4.0
49 changes: 25 additions & 24 deletions tests/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,33 @@

DEBUG = True

ROOT_URLCONF = 'tests.urls'
SECRET_KEY = 'skskqlqlaskdsd'
ROOT_URLCONF = "tests.urls"
SECRET_KEY = "skskqlqlaskdsd"

AUTOCOMMIT = True


DATABASES = {
'default': {
'NAME': 'test.db',
'ENGINE': 'django.db.backends.sqlite3',
'USER': '',
'PASSWORD': '',
'PORT': '',
"default": {
"NAME": "test.db",
"ENGINE": "django.db.backends.sqlite3",
"USER": "",
"PASSWORD": "",
"PORT": "",
},
}

NEOMODEL_NEO4J_BOLT_URL = os.environ.get('NEO4J_BOLT_URL', 'bolt://neo4j:foobarbaz@localhost:7687')
NEOMODEL_NEO4J_BOLT_URL = os.environ.get(
"NEO4J_BOLT_URL", "bolt://neo4j:foobarbaz@localhost:7687"
)
NEOMODEL_SIGNALS = True
NEOMODEL_FORCE_TIMEZONE = False
NEOMODEL_MAX_CONNECTION_POOL_SIZE = 50

TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'APP_DIRS': True,
"BACKEND": "django.template.backends.django.DjangoTemplates",
"APP_DIRS": True,
"OPTIONS": {
"context_processors": [
"django.template.context_processors.debug",
Expand All @@ -47,29 +49,28 @@

INSTALLED_APPS = [
# Django
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.sites',
'django.contrib.staticfiles',

"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.sites",
"django.contrib.staticfiles",
# Third party
'django_neomodel',

"django_neomodel",
# Test
'tests.someapp',
"tests.someapp",
]

USE_TZ = True
TIME_ZONE = 'UTC'
TIME_ZONE = "UTC"
MIDDLEWARE = [
"django.contrib.sessions.middleware.SessionMiddleware",
"django.contrib.auth.middleware.AuthenticationMiddleware",
"django.contrib.messages.middleware.MessageMiddleware",
]

STATIC_ROOT = "./static/"
STATIC_URL = '/static/'
STATIC_URL = "/static/"

DEFAULT_AUTO_FIELD = "django.db.models.AutoField"

0 comments on commit 126d17a

Please sign in to comment.