#23947: Django's test suite does not pass in reverse order
-------------------------------------+-------------------------------------
Reporter: timgraham | Owner:
Type: | diegoguimaraes
Cleanup/optimization | Status: assigned
Component: Core (Other) | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by diegoguimaraes):
* needs_better_patch: 0 => 1
* has_patch: 0 => 1
Comment:
This initial patch fixes most of the errors when running the Django test
suite with `--reverse`. The common problems I've found so far, was
basically that some tests were performing operations that in a reverse way
triggered side effects, like a smtp sever that was stopped first and had
issues with Thread when tried to start it again, and cache that was closed
by a previous test, etc.
There is still one test failing with issues handling staticfiles cache.
{{{
FAIL: test_template_tag_denorm
(staticfiles_tests.tests.TestCollectionCachedStorage)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/diego/djangoproject/django/tests/staticfiles_tests/tests.py", line
526, in test_template_tag_denorm
self.assertIn(b'url("img/relative.acae32e4532b.png', content)
AssertionError: 'url("img/relative.acae32e4532b.png' not found in
'@import url("../cached/styles.bb84a0240107.css");\nbody {\n
background: #d3d6d8 url("img/relative.deploy12345.png");\n}\n'
}}}
To reproduce this error: `./runtests.py --reverse staticfiles_tests.tests`
--
Ticket URL: <https://code.djangoproject.com/ticket/23947#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.504ef2f73ffd1ea0d9aed551a6dccc30%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.