mirror of
https://github.com/django-components/django-components.git
synced 2025-08-04 06:18:17 +00:00
Ignore type="text/css" in tests, it doesn't matter.
This commit is contained in:
parent
8ebe65d31e
commit
8af63ad3ad
3 changed files with 33 additions and 31 deletions
|
@ -16,12 +16,14 @@ middleware = ComponentDependencyMiddleware(
|
|||
class Django30CompatibleSimpleTestCase(SimpleTestCase):
|
||||
def assertHTMLEqual(self, left, right):
|
||||
left = left.replace(' type="text/javascript"', "")
|
||||
left = left.replace(' type="text/css"', "")
|
||||
super(Django30CompatibleSimpleTestCase, self).assertHTMLEqual(
|
||||
left, right
|
||||
)
|
||||
|
||||
def assertInHTML(self, needle, haystack, count=None, msg_prefix=""):
|
||||
haystack = haystack.replace(' type="text/javascript"', "")
|
||||
haystack = haystack.replace(' type="text/css"', "")
|
||||
super().assertInHTML(needle, haystack, count, msg_prefix)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue