Skip to content

Commit 0d9950d

Browse files
committed
tests: avoid reuse of authenticator fixture between tests
1 parent d0eaf1c commit 0d9950d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

ldapauthenticator/tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from ..ldapauthenticator import LDAPAuthenticator
66

77

8-
@pytest.fixture(scope="session")
8+
@pytest.fixture()
99
def authenticator():
1010
authenticator = LDAPAuthenticator()
1111
authenticator.server_address = os.environ.get("LDAP_HOST", "localhost")

ldapauthenticator/tests/test_ldapauthenticator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ async def test_ldap_auth_use_lookup_dn(authenticator):
7575
None, {"username": "fry", "password": "fry"}
7676
)
7777
assert authorized["name"] == "philip j. fry"
78-
authenticator.use_lookup_dn_username = False
7978

8079

8180
async def test_ldap_auth_search_filter(authenticator):

0 commit comments

Comments
 (0)