mirror of
https://github.com/django-components/django-components.git
synced 2025-08-30 10:47:20 +00:00
Add trick to make tests pass on Django 1.11 too.
This commit is contained in:
parent
ec7b10f4db
commit
e9fba9538f
3 changed files with 9 additions and 3 deletions
7
tests/testutils.py
Normal file
7
tests/testutils.py
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue