mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
Update CSP tests for new default.
This commit is contained in:
parent
219ca3046a
commit
7a48687929
@ -65,7 +65,10 @@ class KernelAPITest(NotebookTestBase):
|
||||
self.assertEqual(r.status_code, 201)
|
||||
self.assertIsInstance(kern1, dict)
|
||||
|
||||
self.assertEqual(r.headers['Content-Security-Policy'], "frame-ancestors 'self'")
|
||||
self.assertEqual(r.headers['Content-Security-Policy'], (
|
||||
"frame-ancestors 'self'; "
|
||||
"report-uri /api/security/csp-report;"
|
||||
))
|
||||
|
||||
def test_main_kernel_handler(self):
|
||||
# POST request
|
||||
@ -75,7 +78,10 @@ class KernelAPITest(NotebookTestBase):
|
||||
self.assertEqual(r.status_code, 201)
|
||||
self.assertIsInstance(kern1, dict)
|
||||
|
||||
self.assertEqual(r.headers['Content-Security-Policy'], "frame-ancestors 'self'")
|
||||
self.assertEqual(r.headers['Content-Security-Policy'], (
|
||||
"frame-ancestors 'self'; "
|
||||
"report-uri /api/security/csp-report;"
|
||||
))
|
||||
|
||||
# GET request
|
||||
r = self.kern_api.list()
|
||||
|
Loading…
Reference in New Issue
Block a user