Skip to content

Commit

Permalink
test: Remove unnecessary autouse=True from fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Feb 10, 2019
1 parent 0b44673 commit cfd66c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/t/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def find_unique_completion_pair(
return result


@pytest.fixture(autouse=True, scope="class")
@pytest.fixture(scope="class")
def part_full_user(bash: pexpect.spawn) -> Optional[Tuple[str, str]]:
res = assert_bash_exec(
bash, "compgen -u", want_output=True,
Expand All @@ -64,7 +64,7 @@ def part_full_user(bash: pexpect.spawn) -> Optional[Tuple[str, str]]:
return pair


@pytest.fixture(autouse=True, scope="class")
@pytest.fixture(scope="class")
def part_full_group(bash: pexpect.spawn) -> Optional[Tuple[str, str]]:
res = assert_bash_exec(
bash, "compgen -g", want_output=True,
Expand All @@ -75,7 +75,7 @@ def part_full_group(bash: pexpect.spawn) -> Optional[Tuple[str, str]]:
return pair


@pytest.fixture(autouse=True, scope="class")
@pytest.fixture(scope="class")
def bash(request) -> pexpect.spawn:

logfile = None
Expand Down Expand Up @@ -392,7 +392,7 @@ def assert_complete(
return result


@pytest.fixture(autouse=True)
@pytest.fixture
def completion(request, bash: pexpect.spawn) -> CompletionResult:
marker = request.node.get_closest_marker("complete")
if not marker:
Expand Down

0 comments on commit cfd66c2

Please sign in to comment.