Skip to content

Commit 038c649

Browse files
committed
Fix the template_source test
1 parent 08f6e43 commit 038c649

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_integration.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import django
1010
from django.contrib.staticfiles.testing import StaticLiveServerTestCase
11+
from django.core import signing
1112
from django.core.checks import Error, run_checks
1213
from django.template.loader import get_template
1314
from django.test import RequestFactory, TestCase
@@ -143,7 +144,7 @@ def test_template_source_checks_show_toolbar(self):
143144
url = '/__debug__/template_source/'
144145
data = {
145146
'template': template.template.name,
146-
'template_origin': template.template.origin.name
147+
'template_origin': signing.dumps(template.template.origin.name)
147148
}
148149

149150
response = self.client.get(url, data)

0 commit comments

Comments
 (0)