Skip to content

Commit

Permalink
Set client fixture as function scoped
Browse files Browse the repository at this point in the history
got some issues testing session stuff when the client was
shared amongst all tests, maybe it got old or something as well.
Getting a fresh client for each test was a lot better
  • Loading branch information
stveit committed Feb 23, 2024
1 parent fdc76b5 commit 9c07866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def localhost_using_legacy_db():
conn.commit()


@pytest.fixture(scope='session')
@pytest.fixture(scope='function')
def client(admin_username, admin_password):
"""Provides a Django test Client object already logged in to the web UI as
an admin"""
Expand Down

0 comments on commit 9c07866

Please sign in to comment.