From 66aa7ba962ce3a0abdc987415f4e408b32c3f1c7 Mon Sep 17 00:00:00 2001 From: WorldTeacher Date: Wed, 10 Dec 2025 10:44:22 +0100 Subject: [PATCH] test: update tests to reflect latest changes --- tests/test_sru.py | 3 +-- tests/test_webrequest.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test_sru.py b/tests/test_sru.py index c991102..29852a8 100644 --- a/tests/test_sru.py +++ b/tests/test_sru.py @@ -20,10 +20,9 @@ from src.bibapi import SWB # --- Integration test (requires network) --- -@pytest.mark.integration def test_swb_schema() -> None: """Integration test that requires network access.""" - result = SWB().getBooks(["pica.tit=Java ist auch eine Insel", "pica.bib=20735"]) + result = SWB().getBooks(["TITLE=Java ist auch eine Insel", "LIBRARY=20735"]) assert len(result) == 1 assert result[0].title == "Java ist auch eine Insel" diff --git a/tests/test_webrequest.py b/tests/test_webrequest.py index 35224da..2d69d68 100644 --- a/tests/test_webrequest.py +++ b/tests/test_webrequest.py @@ -37,7 +37,7 @@ class TestWebRequest: mock_response.text = "192.168.1.1" # Not in ALLOWED_IPS mock_get.return_value = mock_response - with pytest.raises(PermissionError, match="IP not allowed"): + with pytest.raises(PermissionError, match="not allowed"): WebRequest() def test_webrequest_init_allowed_ip(self):