Skip to content

Commit c8dbbfb

Browse files
committed
Fixed tests
1 parent 33debff commit c8dbbfb

File tree

4 files changed

+29
-5
lines changed

4 files changed

+29
-5
lines changed

.travis.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,11 @@ cache:
1919
install:
2020
- pip install tox coveralls
2121
script:
22-
- tox -e $TOX_ENV -- --cov=flask_graphql
22+
- tox -e $TOX_ENV -- --cov=graphql_server
2323
after_success:
2424
- coveralls
2525
deploy:
2626
provider: pypi
2727
user: syrusakbary
2828
on:
2929
tags: true
30-
password:
31-
secure: GB3YHihKAbmfh9kzMxzsZQDMf5h1aIJYwESfaYMc4DjMA1Qms+ZhBN2RiH3irwJ6FW47ZsS/O6ZsrlNxu75J/Mc1NJfzFev1d0xt7cYp+s0umYHhheelR6wmP8KOt3ugK7qmWuk5bykljpxsRKzKJCvGH+LOM7mDQy3NZOfYPTAM2znWjuBr+X4iUv6pUCKk5N20GBbs9T+jNttE7K8TH4zuXCWxgbE7xVHth76pB5Q/9FZkB8hZQ7K2esO3QyajDO7FzsOk8Z/jXRJ3MOxZCI3vGgmSzKTH4fMqmSrtyr1sCaBO5tgS8ytqQBjsuV1vIWl+75bXrAXfdkin63zMne4Rsb+uSWj3djP+iy2yML8a2mWMizxr803v8lwaGnMZ26f4rwdZnHGUPlTp3geVKq23vidVTQwF8v2o1rHvtdD4KJ5Mi41TXAfnih3XUf+fCTXdbAXKqweDuhcZg09/r7U/6zo76wjnt1cePPZe63/xG6bAVQ+Gz1J+HZz55ofDZV9g9kwyNll4Jfdzj9hUHO8AfBMvXQJewRj/LbzbmbBp5peov+DFhx7TWofvqxjreVKxDiDN89pC+WKy5BwZMcpB3dRVGuZ25ZrENLgoTX7W4PHPb1+OF4edP6xM44egcJLamk7vhvpZQqukJGRQZFtIMw8KIkC7OWzpCFIXN08=

graphql_server/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from graphql.error import format_error as format_graphql_error
77
from graphql.error import GraphQLError
88
from graphql.execution import ExecutionResult
9-
from graphql.type.schema import GraphQLSchema
109
from graphql.utils.get_operation_ast import get_operation_ast
1110

1211
from .error import HttpQueryError

tests/test_base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def execution_to_dict(execution_result):
1717

1818

1919
def executions_to_dict(execution_results):
20-
return map(execution_to_dict, execution_results)
20+
return list(map(execution_to_dict, execution_results))
2121

2222

2323
def test_allows_get_with_query_param():

tox.ini

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[tox]
2+
envlist = flake8,import-order,py35,py27,py33,py34,pypy
3+
skipsdist = true
4+
5+
[testenv]
6+
setenv =
7+
PYTHONPATH = {toxinidir}
8+
deps =
9+
pytest>=2.7.2
10+
graphql-core>=1.0
11+
pytest-cov
12+
commands =
13+
py{py,27,33,34,35}: py.test tests {posargs}
14+
15+
[testenv:flake8]
16+
basepython=python3.5
17+
deps = flake8
18+
commands =
19+
flake8 graphql_server
20+
21+
[testenv:import-order]
22+
basepython=python3.5
23+
deps =
24+
isort
25+
graphql-core>=1.0
26+
commands =
27+
isort --check-only graphql_server/ -rc

0 commit comments

Comments
 (0)