dev #15

Merged
WorldTeacher merged 3 commits from dev into main 2025-12-10 10:00:04 +00:00
2 changed files with 2 additions and 3 deletions
Showing only changes of commit 66aa7ba962 - Show all commits

View File

@@ -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"

View File

@@ -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):