Changeset - 92653a85a87e
[Not reviewed]
stable
0 1 0
Mads Kiilerich (mads) - 3 years ago 2023-04-20 10:33:39
mads@kiilerich.com
Grafted from: 33c322a3c282
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")
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/tests/conftest.py
Show inline comments
 
@@ -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."""
0 comments (0 inline, 0 general)