# HG changeset patch # User Mads Kiilerich # Date 2023-04-20 08:33:39 # Node ID 92653a85a87e007e020c6917d0ca24cd2c5edaf2 # Parent 419329d436fd630cc9d4c7add640dc3ed45b71db tests: address PytestDeprecationWarning for @pytest.yield_fixture Adhere to the warning: kallithea/tests/conftest.py:207: PytestDeprecationWarning: @pytest.yield_fixture is deprecated. Use @pytest.fixture instead; they are the same. @pytest.yield_fixture(scope="session") diff --git a/kallithea/tests/conftest.py b/kallithea/tests/conftest.py --- a/kallithea/tests/conftest.py +++ b/kallithea/tests/conftest.py @@ -204,7 +204,7 @@ class MyWSGIServer(WSGIServer): return '%s://%s%s:%s/%s' % (proto, auth, host, port, repo_name) -@pytest.yield_fixture(scope="session") +@pytest.fixture(scope="session") def webserver(): """Start web server while tests are running. Useful for debugging and necessary for vcs operation tests."""