Skip to content

Commit f1fb25d

Browse files
committed
Add the aiohttp AND websockets mark to the aiohttp_websocket tests
1 parent 5653d56 commit f1fb25d

5 files changed

+11
-12
lines changed

tests/test_aiohttp_websocket_exceptions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515

1616
from .conftest import MS, WebSocketServerHelper
1717

18-
# Marking all tests in this file with the websockets marker
19-
pytestmark = pytest.mark.aiohttp_websockets
18+
# Marking all tests in this file with the aiohttp AND websockets marker
19+
pytestmark = [pytest.mark.aiohttp, pytest.mark.websockets]
2020

2121
invalid_query_str = """
2222
query getContinents {

tests/test_aiohttp_websocket_graphql_exceptions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
from .conftest import WebSocketServerHelper
1414

15-
# Marking all tests in this file with the websockets marker
16-
pytestmark = pytest.mark.aiohttp_websockets
15+
# Marking all tests in this file with the aiohttp AND websockets marker
16+
pytestmark = [pytest.mark.aiohttp, pytest.mark.websockets]
1717

1818
invalid_query_str = """
1919
query getContinents {

tests/test_aiohttp_websocket_graphql_subscription.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
from .conftest import MS, WebSocketServerHelper
1414

15-
# Marking all tests in this file with the websockets marker
16-
pytestmark = pytest.mark.aiohttp_websockets
15+
# Marking all tests in this file with the aiohttp AND websockets marker
16+
pytestmark = [pytest.mark.aiohttp, pytest.mark.websockets]
1717

1818
countdown_server_answer = (
1919
'{{"type":"next","id":"{query_id}","payload":{{"data":{{"number":{number}}}}}}}'

tests/test_aiohttp_websocket_query.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
from .conftest import MS, WebSocketServerHelper
1818

19-
# Marking all tests in this file with the websockets marker
20-
pytestmark = pytest.mark.aiohttp_websockets
19+
# Marking all tests in this file with the aiohttp AND websockets marker
20+
pytestmark = [pytest.mark.aiohttp, pytest.mark.websockets]
2121

2222
query1_str = """
2323
query getContinents {

tests/test_aiohttp_websocket_subscription.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
from .conftest import MS, WebSocketServerHelper
1515
from .starwars.schema import StarWarsIntrospection, StarWarsSchema, StarWarsTypeDef
1616

17+
# Marking all tests in this file with the aiohttp AND websockets marker
18+
pytestmark = [pytest.mark.aiohttp, pytest.mark.websockets]
19+
1720
starwars_expected_one = {
1821
"stars": 3,
1922
"commentary": "Was expecting more stuff",
@@ -77,9 +80,6 @@ async def server_starwars(ws, path):
7780
}
7881
"""
7982

80-
# Marking all tests in this file with the websockets marker
81-
pytestmark = pytest.mark.aiohttp_websockets
82-
8383
countdown_server_answer = (
8484
'{{"type":"data","id":"{query_id}","payload":{{"data":{{"number":{number}}}}}}}'
8585
)
@@ -711,7 +711,6 @@ def test_code():
711711
await run_sync_test(event_loop, server, test_code)
712712

713713

714-
@pytest.mark.aiohttp_websockets
715714
@pytest.mark.asyncio
716715
@pytest.mark.parametrize("server", [server_starwars], indirect=True)
717716
@pytest.mark.parametrize("subscription_str", [starwars_subscription_str])

0 commit comments

Comments
 (0)