Skip to content

Commit 3bc0f5f

Browse files
committed
Moved all the examples from tests to examples
1 parent f4c1e71 commit 3bc0f5f

22 files changed

+16
-14
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,5 @@ docs/_build/
5959
# PyBuilder
6060
target/
6161

62+
63+
/tests/django.sqlite

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ result = schema.execute(query)
4949

5050
If you want to learn even more, you can also check the following examples:
5151

52-
* Relay Schema: [Starwars Relay example](tests/starwars_relay)
53-
* Django: [Starwars Django example](tests/starwars_django)
52+
* Relay Schema: [Starwars Relay example](examples/starwars_relay)
53+
* Django: [Starwars Django example](examples/starwars_django)
5454

5555

5656
## Contributing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/starwars/test_query.py renamed to examples/starwars/tests/test_query.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from .schema import Schema, Query
1+
from ..schema import Schema, Query
22
from graphql.core import graphql
3-
from .data import setup
3+
from ..data import setup
44

55
setup()
66

examples/starwars_django/__init__.py

Whitespace-only changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

examples/starwars_django/tests/__init__.py

Whitespace-only changes.

tests/starwars_django/test_connections.py renamed to examples/starwars_django/tests/test_connections.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import pytest
22
from graphql.core import graphql
33

4-
from .models import *
5-
from .schema import schema
6-
from .data import initialize
4+
from ..models import *
5+
from ..schema import schema
6+
from ..data import initialize
77

88
pytestmark = pytest.mark.django_db
99

tests/starwars_django/test_objectidentification.py renamed to examples/starwars_django/tests/test_objectidentification.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import pytest
22
from pytest import raises
33
from graphql.core import graphql
4-
from .data import initialize
4+
from ..data import initialize
55

6-
from .schema import schema
6+
from ..schema import schema
77

88
pytestmark = pytest.mark.django_db
99

examples/starwars_relay/__init__.py

Whitespace-only changes.
File renamed without changes.
File renamed without changes.

examples/starwars_relay/tests/__init__.py

Whitespace-only changes.

tests/starwars_relay/test_connections.py renamed to examples/starwars_relay/tests/test_connections.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from .schema import schema
2-
from .data import setup
1+
from ..schema import schema
2+
from ..data import setup
33

44
setup()
55

tests/starwars_relay/test_objectidentification.py renamed to examples/starwars_relay/tests/test_objectidentification.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from .schema import schema
2-
from .data import setup
1+
from ..schema import schema
2+
from ..data import setup
33

44
setup()
55

tests/django_settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
INSTALLED_APPS = [
44
'graphene.contrib.django',
5-
'tests.starwars_django',
5+
'examples.starwars_django',
66
'tests.contrib_django',
77
]
88

0 commit comments

Comments
 (0)