Skip to content

Commit

Permalink
feat: pytest fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
robbrad committed Nov 1, 2024
1 parent a2c9c2b commit d835c33
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
!*.Dockerfile
!docker-compose.yml
!.vscode/launch.json
!pytest.ini

# Or these folders...
!.github
Expand Down
1 change: 0 additions & 1 deletion conftest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import pytest
from _pytest.config.argparsing import Parser
from _pytest.fixtures import FixtureRequest
import asyncio

from pytest_socket import enable_socket, disable_socket, socket_allow_hosts

Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ include = ["uk_bin_collection"]
pythonpath = [
".", "uk_bin_collection"
]
asyncio_mode = "auto"

[tool.flit.metadata]
module = "uk_bin_collection"
Expand Down
7 changes: 7 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[pytest]
pythonpath = ./uk_bin_collection
asyncio_mode=auto
# Unsetting this will cause testing to fail with a key error for any VALID value
# Leaving it out allows pytest to run, but will generate a warning
asyncio_default_fixture_loop_scope=function
filterwarnings=ignore::DeprecationWarning

0 comments on commit d835c33

Please sign in to comment.