Skip to content

Commit

Permalink
remove autouse from fixtures (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
lorjala authored Nov 9, 2021
1 parent 79c00b3 commit 50cfe2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytest_lockable/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def pytest_addoption(parser):
group.addoption("--allocation_lock_folder", default=tempfile.gettempdir(), help="Allocation lockfiles folder")


@pytest.fixture(scope="session", autouse=True)
@pytest.fixture(scope="session")
def lockable(pytestconfig):
"""
pytest fixture that yields function for allocate any resource
Expand All @@ -36,7 +36,7 @@ def test_foo(lockable):
yield _lockable


@pytest.fixture(scope="session", autouse=True)
@pytest.fixture(scope="session")
def lockable_resource(pytestconfig, lockable): # pylint: disable=redefined-outer-name
"""
pytest fixture that lock suitable resource and yield it
Expand Down

0 comments on commit 50cfe2b

Please sign in to comment.