You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
poetry run pytest uk_bin_collection/tests/step_defs/ -k "BarkingDagenham" --headless=False --selenium_url=http://localhost:4444
I see this warning...
======================================= warnings summary =======================================
uk_bin_collection/tests/step_defs/test_validate_council.py:31
/workspaces/UKBinCollectionData/uk_bin_collection/tests/step_defs/test_validate_council.py:31: PytestUnknownMarkWarning: Unknown pytest.mark.no_homeassistant - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
@pytest.mark.no_homeassistant # Apply marker here
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======================== 1 passed, 311 deselected, 1 warning in 43.64s =========================
According to an AI helper...
In your test file test_validate_council.py, there's a custom marker @pytest.mark.no_homeassistant being used on line 31.
The warning is telling you that this marker hasn't been registered with pytest, which is why it's showing as "unknown". This is just a warning, not an error, but it's good practice to register custom markers to avoid these warnings.
Adding this marker line to pytest.ini seems to fix it.
asyncio_default_fixture_loop_scope=function
filterwarnings=ignore::DeprecationWarning
addopts = -vv
markers =
no_homeassistant: mark test to not run when Home Assistant is involved
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
When I run a test from the Terminal...
poetry run pytest uk_bin_collection/tests/step_defs/ -k "BarkingDagenham" --headless=False --selenium_url=http://localhost:4444
I see this warning...
According to an AI helper...
In your test file test_validate_council.py, there's a custom marker @pytest.mark.no_homeassistant being used on line 31.
The warning is telling you that this marker hasn't been registered with pytest, which is why it's showing as "unknown". This is just a warning, not an error, but it's good practice to register custom markers to avoid these warnings.
Adding this marker line to pytest.ini seems to fix it.
Beta Was this translation helpful? Give feedback.
All reactions