mklymyshyn / django-dtpanel-htmltidy

Custom panel form Django Debug Toolbar which display HTML Validation errors and warnings
BSD 3-Clause "New" or "Revised" License
45 stars 8 forks source link

Testfix: middleware should be deactivated while running the tests #4

Closed Narsil closed 12 years ago

Narsil commented 13 years ago

Here is the problem, when you run

example_htmltidy/manage.py test

Test fails because of too many errors. This is because the example app installs the middlewares which get to run before the htmltidy can check the validity of the page, and causes too many warnings.

Fix: empty the MIDDLEWARE_CLASSES settings before running the tests