Closed typeshige closed 13 years ago
yeah, let me know. The tests passed for me last time I committed, but with a traceback I would be happy to take a look.
This is what I get on my machine.
I took a peek at what what the variable format was set to when it fails and it's "N j, Y"
Traceback (most recent call last): File "/home/django/.virtualenvs/astrobiology/src/django-typogrify/typogrify/tests/fuzzydate.py", line 38, in test_formats_other_years self.assertEquals(fuzzydate(testdate), expected) AssertionError: u'Oct. 10, 1984' != 'October 10th, 1984'
Also, in typogrify_tags.py lines 182-184 are variable assignments that are never used....
Thanks, Shige
yeah, the issue here is that it uses the date format from settings. I try and override this here:
https://github.com/chrisdrackett/django-typogrify/blob/master/typogrify/tests/fuzzydate.py#L9
not sure why it isn't sticking for you. Do you have the most recent code?
I do, but now that I look at it more closely, on L9, setup should be setUp.
As in this example:
https://docs.djangoproject.com/en/dev/topics/testing/#example
try now?
It's all good now!
thanks for the help!
The test fails on my system. I can post what it says in a little bit if that would be helpful.
Thanks.