-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from yunstanford/yx-replace-aiohttp-with-httpx
Replace aiohttp with httpx
- Loading branch information
Showing
8 changed files
with
313 additions
and
431 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "pytest-sanic" | ||
version = "1.6.2" | ||
version = "1.7.0" | ||
description = "a pytest plugin for Sanic" | ||
authors = ["Yun Xu <[email protected]>"] | ||
license = "MIT" | ||
|
@@ -13,14 +13,15 @@ classifiers = [ | |
] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.6" | ||
python = ">=3.6.1" | ||
pytest = ">=5.2" | ||
async_generator = "^1.10" | ||
aiohttp = "^3.6.2" | ||
httpx = ">=0.15.4" | ||
websockets = ">=8.1,<9.0" | ||
|
||
[tool.poetry.dev-dependencies] | ||
pytest = ">=5.3.5" | ||
sanic = "^19.12.2" | ||
sanic = "^20.12.2" | ||
pytest-cov = "^2.8.1" | ||
|
||
[tool.poetry.plugins."pytest11"] | ||
|
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# This is a special test. it will fail for sanic <= 0.5.4 | ||
async def test_fixture_sanic_client_ws(test_cli): | ||
ws_conn = await test_cli.ws_connect('/test_ws') | ||
async def test_fixture_sanic_client_ws(test_cli_ws): | ||
ws_conn = await test_cli_ws.ws_connect('/test_ws') | ||
data = 'hello world!' | ||
await ws_conn.send_str(data) | ||
msg = await ws_conn.receive() | ||
assert msg.data == data | ||
await ws_conn.send(data) | ||
msg = await ws_conn.recv() | ||
assert msg == data | ||
await ws_conn.close() |
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