diff --git a/tests/data_exports/test_oclc_api.py b/tests/data_exports/test_oclc_api.py index 8092e69f..d10fff82 100644 --- a/tests/data_exports/test_oclc_api.py +++ b/tests/data_exports/test_oclc_api.py @@ -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": []} @@ -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"