Skip to content

Commit 2ff149a

Browse files
author
Paul Diepold
committed
add test
1 parent 0014e72 commit 2ff149a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

inertia/tests/test_rendering.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,8 @@ class CSRFTestCase(InertiaTestCase):
103103
def test_that_csrf_inclusion_is_automatic(self):
104104
response = self.inertia.get('/props/')
105105

106+
self.assertIsNotNone(response.cookies.get('csrftoken'))
107+
def test_that_csrf_is_included_even_on_initial_page_load(self):
108+
response = self.client.get('/props/')
109+
106110
self.assertIsNotNone(response.cookies.get('csrftoken'))

0 commit comments

Comments
 (0)