Add trick to make tests pass on Django 1.11 too.

This commit is contained in:
Emil Stenström 2020-12-08 23:33:36 +01:00
parent ec7b10f4db
commit e9fba9538f
3 changed files with 9 additions and 3 deletions

7
tests/testutils.py Normal file
View file

@ -0,0 +1,7 @@
from django.test import SimpleTestCase
class Django111CompatibleSimpleTestCase(SimpleTestCase):
def assertHTMLEqual(self, left, right):
left = left.replace(' type="text/javascript"', '')
super(Django111CompatibleSimpleTestCase, self).assertHTMLEqual(left, right)