Skip to content

Commit 50cfe2b

Browse files
authored
remove autouse from fixtures (#23)
1 parent 79c00b3 commit 50cfe2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytest_lockable/plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def pytest_addoption(parser):
1818
group.addoption("--allocation_lock_folder", default=tempfile.gettempdir(), help="Allocation lockfiles folder")
1919

2020

21-
@pytest.fixture(scope="session", autouse=True)
21+
@pytest.fixture(scope="session")
2222
def lockable(pytestconfig):
2323
"""
2424
pytest fixture that yields function for allocate any resource
@@ -36,7 +36,7 @@ def test_foo(lockable):
3636
yield _lockable
3737

3838

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

0 commit comments

Comments
 (0)