Skip to content

TESTS marking remaining online tests as online #288

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def test_no_schema_exception():
)


@pytest.mark.online
@pytest.mark.requests
def test_execute_result_error():

Expand All @@ -111,6 +112,7 @@ def test_execute_result_error():
assert 'Cannot query field "id" on type "Continent".' in str(exc_info.value)


@pytest.mark.online
@pytest.mark.requests
def test_http_transport_raise_for_status_error(http_transport_query):
from gql.transport.requests import RequestsHTTPTransport
Expand All @@ -127,6 +129,7 @@ def test_http_transport_raise_for_status_error(http_transport_query):
assert "400 Client Error: Bad Request for url" in str(exc_info.value)


@pytest.mark.online
@pytest.mark.requests
def test_http_transport_verify_error(http_transport_query):
from gql.transport.requests import RequestsHTTPTransport
Expand All @@ -142,6 +145,7 @@ def test_http_transport_verify_error(http_transport_query):
assert "Unverified HTTPS request is being made to host" in str(record[0].message)


@pytest.mark.online
@pytest.mark.requests
def test_http_transport_specify_method_valid(http_transport_query):
from gql.transport.requests import RequestsHTTPTransport
Expand All @@ -155,6 +159,7 @@ def test_http_transport_specify_method_valid(http_transport_query):
assert result is not None


@pytest.mark.online
@pytest.mark.requests
def test_http_transport_specify_method_invalid(http_transport_query):
from gql.transport.requests import RequestsHTTPTransport
Expand Down