Hochfrequenz / ahbicht

Python Package that parses Condition Expressions from Anwendungshandbüchers ("AHB")
MIT License
4 stars 0 forks source link

Fix DeprecationWarning In Pytest #481

Open hf-krechan opened 2 months ago

hf-krechan commented 2 months ago

We get the following DepcratingWarning if we run the tests

PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the fixture caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to function scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

  warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
hf-kklein commented 2 months ago

pytest-asyncio is auch einne stete quelle der freude. seit 0.23 macht das echt nervige probleme