Skip to content

Commit

Permalink
Replace pytest.yield_fixture with pytest.fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
UlrichB22 committed Apr 10, 2023
1 parent 012bfd2 commit 7199060
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/moin/auth/_tests/test_http.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Copyright: 2011 Prashant Kumar <contactprashantat AT gmail DOT com>
# Copyright: 2023 MoinMoin project
# License: GNU GPL v2 (or any later version), see LICENSE.txt for details.

"""
Expand All @@ -18,7 +19,7 @@
class TestHTTPAuthMoin:
""" Test: HTTPAuthMoin """

@pytest.yield_fixture(autouse=True)
@pytest.fixture(autouse=True)
def custom_setup(self):
class Auth:
def __init__(self):
Expand Down
3 changes: 2 additions & 1 deletion src/moin/conftest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Copyright: 2005 MoinMoin:NirSoffer
# Copyright: 2007 MoinMoin:AlexanderSchremmer
# Copyright: 2008,2011 MoinMoin:ThomasWaldmann
# Copyright: 2023 MoinMoin project
# License: GNU GPL v2 (or any later version), see LICENSE.txt for details.

"""
Expand Down Expand Up @@ -43,7 +44,7 @@ def cfg():
return wikiconfig.Config


@pytest.yield_fixture
@pytest.fixture
def app_ctx(cfg):
namespace_mapping, backend_mapping, acl_mapping = create_simple_mapping(
"stores:memory:",
Expand Down

0 comments on commit 7199060

Please sign in to comment.