test: update tests to reflect latest changes
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user