This is a difference between Django 3.0 and 3.1.

This commit is contained in:
Emil Stenström 2021-02-15 21:22:07 +01:00
parent f188fab540
commit 26f39c73f3
5 changed files with 6 additions and 6 deletions

View file

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