Re: django custom timezone middleware causing django.contrib.humanize test to fail

2015-03-31 Thread Tim Graham
In general it's not possible to have those tests pass with arbitrary 
settings. To remedy this, the new test runner in Django 1.6 [1] won't pick 
up Django's tests that are part of contrib apps. 

On a related note, consider upgrading to a supported version of Django 
(1.7+), or at least the last release in the 1.5 series (1.5.12) which 
remedies several security issues in 1.5.4.

[1] 
https://docs.djangoproject.com/en/stable/releases/1.6/#discovery-of-tests-in-any-test-module

On Tuesday, March 31, 2015 at 4:49:20 PM UTC-4, Matt Ball wrote:
>
> Hi -- I'm unable to get all tests to pass with Django 1.5.4 when I have 
> custom timezone-activating middleware enabled.
>
> I've posted code here: http://stackoverflow.com/questions/29376612
>
> Is there a way to disable the middleware for that specific test?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a28bea53-ff7c-43bc-b9c8-2f3a6f68cbb0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


django custom timezone middleware causing django.contrib.humanize test to fail

2015-03-31 Thread Matt Ball
Hi -- I'm unable to get all tests to pass with Django 1.5.4 when I have 
custom timezone-activating middleware enabled.

I've posted code here: http://stackoverflow.com/questions/29376612

Is there a way to disable the middleware for that specific test?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8cdcad03-1bed-4ca0-ab13-10d93e0fa6c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.