Skip to content

Commit 2eba817

Browse files
committed
Use proper cassette in test, silence pytest
1 parent e93ec8d commit 2eba817

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

tests/test_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def test_no_schema_exception():
8181
def test_execute_result_error():
8282

8383
client = Client(
84-
transport=RequestsHTTPTransport(url="https://countries.trevorblades.com/",),
84+
transport=RequestsHTTPTransport(url="https://countries.trevorblades.com/"),
8585
)
8686

8787
failing_query = gql(

tests/test_transport.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def test_hero_name_query(client):
7676
},
7777
}
7878
}
79-
with use_cassette("execute"):
79+
with use_cassette("queries"):
8080
result = client.execute(query)
8181
assert result == expected
8282

tox.ini

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ deps = -e.[test]
1919
; Prevent installing issues: https://github.com/ContinuumIO/anaconda-issues/issues/542
2020
commands =
2121
pip install -U setuptools
22-
py{36,37,39-dev,py3}: pytest {posargs:tests -s}
23-
py{38}: pytest {posargs:tests --cov-report=term-missing --cov=gql -s}
22+
; run "tox -- tests -s" to show output for debugging
23+
py{36,37,39-dev,py3}: pytest {posargs:tests}
24+
py{38}: pytest {posargs:tests --cov-report=term-missing --cov=gql}
2425

2526
[testenv:black]
2627
basepython=python3.8

0 commit comments

Comments
 (0)