Skip to content

Commit

Permalink
changed live_token fixture scope to reduce calls
Browse files Browse the repository at this point in the history
  • Loading branch information
charlottekostelic committed Nov 14, 2024
1 parent edea62b commit 4501873
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/webtests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ def live_keys() -> None:
os.environ["WCScopes"] = data["scopes"]


@pytest.fixture
@pytest.fixture(scope="class")
@pytest.mark.usefixtures("live_keys")
def live_token() -> Generator[WorldcatAccessToken, None, None]:
"""
Gets live token from environment variables. For use with live tests so that
Expand Down

0 comments on commit 4501873

Please sign in to comment.