-
-
Notifications
You must be signed in to change notification settings - Fork 542
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
291 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Release type: minor | ||
|
||
@defer 👀 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,8 +61,7 @@ | |
<link | ||
crossorigin | ||
rel="stylesheet" | ||
href="https://unpkg.com/[email protected]/graphiql.min.css" | ||
integrity="sha384-yz3/sqpuplkA7msMo0FE4ekg0xdwdvZ8JX9MVZREsxipqjU4h8IRfmAMRcb1QpUy" | ||
href="https://unpkg.com/[email protected]/graphiql.min.css" | ||
/> | ||
|
||
<link | ||
|
@@ -77,13 +76,11 @@ | |
<div id="graphiql" class="graphiql-container">Loading...</div> | ||
<script | ||
crossorigin | ||
src="https://unpkg.com/[email protected]/graphiql.min.js" | ||
integrity="sha384-Mjte+vxCWz1ZYCzszGHiJqJa5eAxiqI4mc3BErq7eDXnt+UGLXSEW7+i0wmfPiji" | ||
src="https://unpkg.com/[email protected]/graphiql.min.js" | ||
></script> | ||
<script | ||
crossorigin | ||
src="https://unpkg.com/@graphiql/[email protected]/dist/index.umd.js" | ||
integrity="sha384-2oonKe47vfHIZnmB6ZZ10vl7T0Y+qrHQF2cmNTaFDuPshpKqpUMGMc9jgj9MLDZ9" | ||
></script> | ||
<script> | ||
const EXAMPLE_QUERY = `# Welcome to GraphiQL 🍓 | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import contextlib | ||
|
||
import pytest | ||
|
||
from tests.http.clients.base import HttpClient | ||
|
||
|
||
@pytest.fixture | ||
def http_client(http_client_class: type[HttpClient]) -> HttpClient: | ||
with contextlib.suppress(ImportError): | ||
import django | ||
|
||
if django.VERSION < (4, 2): | ||
pytest.skip(reason="Django < 4.2 doesn't async streaming responses") | ||
|
||
from tests.http.clients.django import DjangoHttpClient | ||
|
||
if http_client_class is DjangoHttpClient: | ||
pytest.skip(reason="(sync) DjangoHttpClient doesn't support streaming") | ||
|
||
with contextlib.suppress(ImportError): | ||
from tests.http.clients.channels import SyncChannelsHttpClient | ||
|
||
# TODO: why do we have a sync channels client? | ||
if http_client_class is SyncChannelsHttpClient: | ||
pytest.skip(reason="SyncChannelsHttpClient doesn't support streaming") | ||
|
||
with contextlib.suppress(ImportError): | ||
from tests.http.clients.async_flask import AsyncFlaskHttpClient | ||
from tests.http.clients.flask import FlaskHttpClient | ||
|
||
if http_client_class is FlaskHttpClient: | ||
pytest.skip(reason="FlaskHttpClient doesn't support streaming") | ||
|
||
if http_client_class is AsyncFlaskHttpClient: | ||
pytest.xfail(reason="AsyncFlaskHttpClient doesn't support streaming") | ||
|
||
with contextlib.suppress(ImportError): | ||
from tests.http.clients.chalice import ChaliceHttpClient | ||
|
||
if http_client_class is ChaliceHttpClient: | ||
pytest.skip(reason="ChaliceHttpClient doesn't support streaming") | ||
|
||
return http_client_class() |
Oops, something went wrong.