-
Notifications
You must be signed in to change notification settings - Fork 768
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include tests and examples in source package, but don't install them (#…
…1034) ..., but don't install them. Also applied changes as suggested by `black`.
- Loading branch information
1 parent
2e80638
commit ee3d4f5
Showing
10 changed files
with
39 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
include README.md LICENSE | ||
recursive-include graphene_django/templates * | ||
recursive-include graphene_django/static * | ||
|
||
include examples/cookbook/cookbook/ingredients/fixtures/ingredients.json | ||
include examples/cookbook-plain/cookbook/ingredients/fixtures/ingredients.json |
This file was deleted.
Oops, something went wrong.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import sys | ||
import os | ||
|
||
ROOT_PATH = os.path.dirname(os.path.abspath(__file__)) | ||
sys.path.insert(0, ROOT_PATH + "/examples/") | ||
|
||
SECRET_KEY = 1 | ||
|
||
INSTALLED_APPS = [ | ||
"graphene_django", | ||
"graphene_django.rest_framework", | ||
"graphene_django.tests", | ||
"examples.starwars", | ||
] | ||
|
||
DATABASES = { | ||
"default": {"ENGINE": "django.db.backends.sqlite3", "NAME": "django_test.sqlite"} | ||
} | ||
|
||
TEMPLATES = [ | ||
{ | ||
"BACKEND": "django.template.backends.django.DjangoTemplates", | ||
"DIRS": [], | ||
"APP_DIRS": True, | ||
} | ||
] | ||
|
||
GRAPHENE = {"SCHEMA": "graphene_django.tests.schema_view.schema"} | ||
|
||
ROOT_URLCONF = "graphene_django.tests.urls" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[pytest] | ||
DJANGO_SETTINGS_MODULE = django_test_settings | ||
DJANGO_SETTINGS_MODULE = examples.django_test_settings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters