Skip to content

Commit

Permalink
Setup testing workflow (#1)
Browse files Browse the repository at this point in the history
* ensure dependencies installed

* apply black changes

* minor black changes

* explicitly set black line length
  • Loading branch information
Max Morlocke authored Apr 8, 2021
1 parent 0928819 commit 821b132
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[asgi-file-uploads]
pip install -r requirements.txt
pip install -r requirements-dev.txt
- name: Pytest
run: |
Expand All @@ -31,5 +31,5 @@ jobs:
run: |
pylint ariadne_django tests setup.py
mypy ariadne_django --ignore-missing-imports
black --check .
black -l 120 --check .
isort -c .
5 changes: 2 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def pytest_configure():
def request_factory():
return RequestFactory()


@pytest.fixture
def type_defs():
return """
Expand Down Expand Up @@ -124,9 +125,7 @@ def subscriptions():

@pytest.fixture
def schema(type_defs, resolvers, mutations, subscriptions):
return make_executable_schema(
type_defs, [resolvers, mutations, subscriptions, upload_scalar]
)
return make_executable_schema(type_defs, [resolvers, mutations, subscriptions, upload_scalar])


@pytest.fixture
Expand Down

0 comments on commit 821b132

Please sign in to comment.