Skip to content

Commit

Permalink
tests: avoid reuse of authenticator fixture between tests
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Sep 14, 2024
1 parent 9486b76 commit a014f8b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion ldapauthenticator/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from ..ldapauthenticator import LDAPAuthenticator


@pytest.fixture(scope="session")
@pytest.fixture()
def authenticator():
authenticator = LDAPAuthenticator()
authenticator.server_address = os.environ.get("LDAP_HOST", "localhost")
Expand Down
1 change: 0 additions & 1 deletion ldapauthenticator/tests/test_ldapauthenticator.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ async def test_ldap_auth_use_lookup_dn(authenticator):
None, {"username": "fry", "password": "fry"}
)
assert authorized["name"] == "philip j. fry"
authenticator.use_lookup_dn_username = False


async def test_ldap_auth_search_filter(authenticator):
Expand Down

0 comments on commit a014f8b

Please sign in to comment.