Skip to content

Commit eb704f7

Browse files
committed
Fix PR remarks
1 parent 24690d2 commit eb704f7

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

jwtproxy/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# ==== pytest ====
22
[tool.pytest.ini_options]
33
minversion = "6.0"
4+
asyncio_mode = "auto"
45
testpaths = ["tests"]
56

67
# ==== black ====

jwtproxy/src/tests/conftest.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55

66
from ..server import main
77

8-
pytest_plugins = "aiohttp.pytest_plugin"
9-
108
PRIVATE_PROXY_URL = "http://private_proxy"
119
PUBLIC_PROXY_URL = "http://public_proxy"
1210

jwtproxy/src/tests/test_jwtproxy.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ async def test_health(client):
1515

1616
async def test_public_map_without_token_options(client, mock_upstream):
1717
"""
18-
Test to make sure a OPTIONS request without a token to a private map results
18+
Test to make sure a OPTIONS request without a token to a public map results
1919
in a call to the upstream public server.
2020
"""
2121
mock_upstream.options(f"{PUBLIC_PROXY_URL}/maps/luchtfoto", status=200)
@@ -25,7 +25,7 @@ async def test_public_map_without_token_options(client, mock_upstream):
2525

2626
async def test_public_map_without_token_get(client, mock_upstream):
2727
"""
28-
Test to make sure a GET request without a token to a private map results
28+
Test to make sure a GET request without a token to a public map results
2929
in a call to the upstream public server.
3030
"""
3131
mock_upstream.get(f"{PUBLIC_PROXY_URL}/maps/luchtfoto", status=200)
@@ -35,7 +35,7 @@ async def test_public_map_without_token_get(client, mock_upstream):
3535

3636
async def test_public_map_without_token_post(client, mock_upstream):
3737
"""
38-
Test to make sure a POST request without a token to a private map results
38+
Test to make sure a POST request without a token to a public map results
3939
in a call to the upstream public server.
4040
"""
4141
mock_upstream.post(f"{PUBLIC_PROXY_URL}/maps/luchtfoto", status=200)

0 commit comments

Comments
 (0)