Skip to content

Commit

Permalink
Add back in monkey patches
Browse files Browse the repository at this point in the history
  • Loading branch information
jgreben committed Nov 18, 2024
1 parent a946520 commit 43c1aac
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/data_exports/test_oclc_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,12 @@ def test_match_oclc_number(mock_oclc_api, tmp_path, caplog):
assert "Sets new holdings for 958835d2-39cc-4ab3-9c56-53bf7940421b" in caplog.text


def test_oclc_records_operation_no_records(mock_oclc_api, caplog):
def test_oclc_records_operation_no_records(mocker, mock_oclc_api, caplog):
mocker.patch(
'libsys_airflow.plugins.data_exports.oclc_api.is_production',
return_value=True,
)

connections = {"STF": {"username": "sul-admin", "password": "123245"}}
test_records_dict = {"STF": []}

Expand Down Expand Up @@ -1043,6 +1048,11 @@ def test_oclc_marc_modifications():


def test_oclc_records_operation(mocker, mock_oclc_api, tmp_path):
mocker.patch(
'libsys_airflow.plugins.data_exports.oclc_api.is_production',
return_value=True,
)

connections = {"STF": {"username": "sul-admin", "password": "123245"}}

marc_file = tmp_path / "2024070113-STF.mrc"
Expand Down

0 comments on commit 43c1aac

Please sign in to comment.