Skip to content

Commit

Permalink
testing fix to env vars for live tests
Browse files Browse the repository at this point in the history
  • Loading branch information
charlottekostelic committed Nov 5, 2024
1 parent 6f3902b commit a9626d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

@pytest.fixture
def live_keys():
if os.name == "nt":
if os.name == "nt" and not os.getenv("GITHUB_ACTIONS"):
fh = os.path.join(os.environ["USERPROFILE"], ".oclc/nyp_wc_test.json")
with open(fh, "r") as file:
data = json.load(file)
Expand Down
5 changes: 5 additions & 0 deletions tests/test_monthly_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
from bookops_worldcat import MetadataSession, WorldcatAccessToken


@pytest.fixture
def stub_marc21() -> bytes:
return b"00266nam a2200097 a 4500008004100000010001700041040002200058100002700080245001600107500004500123\x1e120827s2012 nyua 000 0 eng d\x1e \x1fa 63011276 \x1e \x1faOCWMS\x1fbeng\x1fcOCWMS\x1e0 \x1faOCLC Developer Network\x1e10\x1faTest Record\x1e \x1faFOR OCLC DEVELOPER NETWORK DOCUMENTATION\x1e\x1d"


@pytest.fixture
def method_params():
"""
Expand Down

0 comments on commit a9626d7

Please sign in to comment.