Michael van Tellingen
6fad63a4d0
Split oscar.test.newfactories in multiple modules
Create a factory module per app and move them under the new
oscar.test.factories module.
преди 10 години
Michael van Tellingen
8c32aaf3d9
Replace last occurences of django-dynamic-fixture with factory-boy
преди 10 години
Jonas Borges
1d650a104b
Correctly check for voucher availability in Applicator.get_basket_offers()
Applicator.get_basket_offers() checks for applicable basket offers using
something like if voucher.is_available_to_user(user) (see
https://github.com/django-oscar/django-oscar/blob/master/src/oscar/apps/offer/utils.py#L99 ).
However, the return value of is_available_to_user() is a 2-tuple, so
this will always evaluate to True.
Closes #1647
преди 11 години
Maik Hoepfel
ac31bb11d0
Remove leftover naive datetimes in tests
Oddly enough, the warnings were only thrown under Python 2.6. Should
investigate!
преди 11 години
Maik Hoepfel
a75a370c00
Update tests for new fields and correct timezone handling
Using timezone.now() will return naive datetimes if USE_TZ is not
enabled, which is what we want.
Resolves errors of comparing naive datetimes with aware datetimes.
преди 12 години
Xavier Ordoquy
73ae26b673
Python3 doesn’t like integers prefixed by 0.
преди 12 години
chenull
4289f882b5
Support Django's 1.5 AUTH_USER_MODEL feature
преди 13 години
David Winterbottom
02b3644e3c
Fix validation error in dashboard voucher form
The clean method was raising a KeyError when the date fields were empty.
преди 12 години