44from mindee .mindee_http .response_validation import validate_url_for_source
55
66
7- @pytest .mark .v1
87class TestValidateUrlScheme :
98 def test_rejects_http (self ):
109 with pytest .raises (MindeeSourceError , match = "HTTPS" ):
@@ -18,7 +17,6 @@ def test_accepts_https(self):
1817 validate_url_for_source ("https://example.com/file.pdf" )
1918
2019
21- @pytest .mark .v1
2220class TestValidateUrlUserinfo :
2321 def test_rejects_username_and_password (self ):
2422 with pytest .raises (MindeeSourceError , match = "credentials" ):
@@ -29,7 +27,6 @@ def test_rejects_username_only(self):
2927 validate_url_for_source ("https://user@example.com/file.pdf" )
3028
3129
32- @pytest .mark .v1
3330class TestValidateUrlLoopbackHostnames :
3431 def test_rejects_localhost (self ):
3532 with pytest .raises (MindeeSourceError , match = "Loopback" ):
@@ -48,7 +45,6 @@ def test_rejects_ip6_loopback(self):
4845 validate_url_for_source ("https://ip6-loopback/file.pdf" )
4946
5047
51- @pytest .mark .v1
5248class TestValidateUrlLoopbackIPs :
5349 def test_rejects_ipv4_loopback (self ):
5450 with pytest .raises (MindeeSourceError , match = "disallowed" ):
@@ -63,7 +59,6 @@ def test_rejects_ipv6_loopback(self):
6359 validate_url_for_source ("https://[::1]/file.pdf" )
6460
6561
66- @pytest .mark .v1
6762class TestValidateUrlPrivateIPs :
6863 def test_rejects_rfc1918_10_block (self ):
6964 with pytest .raises (MindeeSourceError , match = "disallowed" ):
@@ -90,7 +85,6 @@ def test_rejects_multicast(self):
9085 validate_url_for_source ("https://224.0.0.1/file.pdf" )
9186
9287
93- @pytest .mark .v1
9488class TestValidateUrlCgnat :
9589 def test_rejects_cgnat_start (self ):
9690 with pytest .raises (MindeeSourceError , match = "disallowed" ):
@@ -105,7 +99,6 @@ def test_accepts_just_outside_cgnat(self):
10599 validate_url_for_source ("https://100.128.0.1/file.pdf" )
106100
107101
108- @pytest .mark .v1
109102class TestValidateUrlIpv6UniqueLocal :
110103 def test_rejects_ipv6_ula_fc (self ):
111104 with pytest .raises (MindeeSourceError , match = "disallowed" ):
0 commit comments