changeset 9007:92653a85a87e stable

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")
author Mads Kiilerich <mads@kiilerich.com>
date Thu, 20 Apr 2023 10:33:39 +0200
parents 419329d436fd
children 3d9ee947e142
files kallithea/tests/conftest.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/tests/conftest.py	Sat Jul 20 17:10:24 2024 +0200
+++ b/kallithea/tests/conftest.py	Thu Apr 20 10:33:39 2023 +0200
@@ -204,7 +204,7 @@
         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."""