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
@mnightingale For some reason the test_dirscanner tests are all being ignored with super weird reasoning:
tests/test_dirscanner.py::TestDirScanner::test_adds_valid_nzbs[file.zip-movies]
tests\test_dirscanner.py:56: PytestWarning: The test <Function test_adds_valid_nzbs[file.zip-movies]> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
@set_config({"dirscan_dir": os.path.join(SAB_CACHE_DIR, "watched")})
But if I remove the marking:
Lib\site-packages\_pytest\python.py:183: PytestUnhandledCoroutineWarning: async def functions are not natively supported and have been skipped.
You need to install a suitable plugin for your async framework, for example:
- anyio
- pytest-asyncio
- pytest-tornasync
- pytest-trio
- pytest-twisted
warnings.warn(PytestUnhandledCoroutineWarning(msg.format(nodeid)))
It looks like it is the @set_config decorator that causes the problem, maybe move that behaviour to setup/teardown or a fixture (a little odd since it would yield None or something).
SABnzbd version
develop
Operating system
CI
Using Docker image
None
Description
@mnightingale For some reason the
test_dirscanner
tests are all being ignored with super weird reasoning:But if I remove the marking:
Even though just a few lines above:
I couldn't find much online... Maybe you know what's going on?
The text was updated successfully, but these errors were encountered: