Sync shared snapshot from 74942e5
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0fd1805502
commit
833eab04af
4 files changed
+25
-14
No files matched your search
@@ -104,7 +104,12 @@ class InternalSecretTests(unittest.TestCase):
|
||||
class UrlValidationTests(unittest.TestCase):
|
||||
def test_rejects_urls_that_are_not_http_or_https_with_a_host(self):
|
||||
store = Store(Info(auth_guard_url="http://auth.example.com"))
|
||||
for bad in ["javascript:alert(1)", "auth.example.com", "ftp://carrier.example.com", "http://"]:
|
||||
for bad in [
|
||||
"javascript:alert(1)",
|
||||
"auth.example.com",
|
||||
"ftp://carrier.example.com",
|
||||
"http://",
|
||||
]:
|
||||
with self.subTest(url=bad), self.assertRaises(ValueError):
|
||||
store.set(Info(auth_guard_url=bad))
|
||||
with self.assertRaises(ValueError):
|
||||
|
||||
Reference in new issue
Block a user