David Winterbottom
98e4cec9ac
Convert TrackStock policy to take an integer
Rather than a StockRecord instance. This makes it much simpler.
hace 12 años
David Winterbottom
7ab67eb282
Add tests for FixedPrice policy
hace 12 años
David Winterbottom
246c2ecc87
Introduce availabilty classes
This are to replace the partner wrappers.
hace 12 años
David Winterbottom
b902f33fcb
Add tests for WrappedStockRecord
hace 12 años
David Winterbottom
7b6fd5f98d
Remove use of product.stockrecord in tests
hace 12 años
David Winterbottom
9bdce05760
Add basic tests to availability, prices and strategy modules
hace 12 años
Maik Hoepfel
8f9d5db31f
Move django-oscar-testsupport into oscar.test
This allows updating code in both places, if necessary. Getting Django
1.5 support would be painful otherwise. This also removes the circular
dependency of django-oscar-testsupport on Oscar.
The requirements were merged. The imports were updated
accordingly. Unused imports in the touched files were removed. No
further changes.
hace 12 años
David Winterbottom
94e9de23c8
Fix fixtures for import tests
hace 12 años
David Winterbottom
0dc6816a93
Extract functionality from oscar.test into separate package
Fixes #376
hace 13 años
David Winterbottom
d9944c2660
Rework availability logic to use less DB queries
* Fixes bug with prefetch_related where looking up secondary relations
raises a DoesNotExist exception.
* Reworks cached partner map to use PKs instead of names.
Availability logic from product class is looked up in product obj
rather than in wrapper to avoid unnecessary queries.
hace 13 años
David Winterbottom
2ffc10e0ce
Adjust default lead time to be None
It's potentially confusing to have it default to a value as you might
miss this in your project.
hace 13 años
David Winterbottom
372d44b336
Rework partner tests for readability
hace 13 años
David Winterbottom
90a1cad1dc
Smooth journey for buying a digital product
This involves:
* Better checkout templates
* Updated availability logic for products with no stock
* Updated dashboard templates
hace 13 años
David Winterbottom
3507b07374
Altered default partner wrapper to not specify a dispatch date
Turns out this is a bit confusing. Better for it to do nothing by
default and this behaviour can be enabled when it is needed.
hace 13 años
David Winterbottom
79b2da4737
Fixed #258 - Added handing of null values in num_allocated.
hace 13 años
David Winterbottom
feb8c9a327
Moved tests into separate package.
Also split them into unit and functional tests.
hace 13 años