Skip to main content

Add an HTTP 403 test

ID
d9ca78a
date
2024-05-16 20:55:48+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
726d7f4
message
Add an HTTP 403 test
changed files
1 file, 1 addition, 1 deletion

Changed files

tests/test_save_safari_webarchive.py (3409) → tests/test_save_safari_webarchive.py (3416)

diff --git a/tests/test_save_safari_webarchive.py b/tests/test_save_safari_webarchive.py
index 1643f56..c472a18 100755
--- a/tests/test_save_safari_webarchive.py
+++ b/tests/test_save_safari_webarchive.py
@@ -67,7 +67,7 @@ def test_it_fails_if_you_supply_the_wrong_arguments(argv: list[str]) -> None:
     }
 
 
-@pytest.mark.parametrize("status_code", ["404", "410", "500"])
+@pytest.mark.parametrize("status_code", ["403", "404", "410", "500"])
 def test_it_fails_if_non_200_status_code(
     status_code: str, out_path: pathlib.Path
 ) -> None: