Skip to content

Commit c39429a

Browse files
ferdinandjarischrumpelsepp
authored andcommitted
chore(tests): Raise pytest Warnings as Errors instead
Since we are doing this for our plugins, it makes sense to also check for it here.
1 parent deff43b commit c39429a

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
poetry install
4242
- name: Run pytest
4343
run: |
44-
poetry run python -m pytest -v tests
44+
poetry run make test
4545
4646
vecu:
4747
strategy:

pyproject.toml

+3
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,6 @@ ignore = [
117117

118118
[tool.pytest.ini_options]
119119
asyncio_mode = "auto"
120+
filterwarnings = [
121+
"error::UserWarning",
122+
]

tests/test_transports.py

-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ async def _echo_test(
6060

6161

6262
@pytest.fixture()
63-
@pytest.mark.asyncio
6463
async def tcp_server() -> AsyncIterator[TCPServer]:
6564
tcp_server = TCPServer()
6665
await tcp_server.listen(listen_target)

0 commit comments

Comments
 (0)