Skip to content

Commit

Permalink
chore(tests): Raise pytest Warnings as Errors instead
Browse files Browse the repository at this point in the history
Since we are doing this for our plugins, it makes sense to also check
for it here.
  • Loading branch information
ferdinandjarisch authored and rumpelsepp committed Jul 30, 2024
1 parent deff43b commit c39429a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
poetry install
- name: Run pytest
run: |
poetry run python -m pytest -v tests
poetry run make test
vecu:
strategy:
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,6 @@ ignore = [

[tool.pytest.ini_options]
asyncio_mode = "auto"
filterwarnings = [
"error::UserWarning",
]
1 change: 0 additions & 1 deletion tests/test_transports.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ async def _echo_test(


@pytest.fixture()
@pytest.mark.asyncio
async def tcp_server() -> AsyncIterator[TCPServer]:
tcp_server = TCPServer()
await tcp_server.listen(listen_target)
Expand Down

0 comments on commit c39429a

Please sign in to comment.