Monika Sulik
86269f9092
Fix validation message in basket
Fixes stockrecord availability validation message in the case when stock is lower than allocation. Previously the message that appeared contained negative numbers. For example: "a maximum of -1 can be bought". Now it will display: "no stock available"
пре 10 година
David Winterbottom
6dcc390d77
Use a better warning message when baskets become invalid during checkout
Also make the availability warnings start with a lowercase char so they
can be embedded in other sentences easily.
пре 12 година
Xavier Ordoquy
0a1b4a60c7
assertEquals deprecated in favor of assertEqual
пре 12 година
David Winterbottom
4105be28dd
Correct broken tests from availability change
пре 12 година
David Winterbottom
98e4cec9ac
Convert TrackStock policy to take an integer
Rather than a StockRecord instance. This makes it much simpler.
пре 12 година
David Winterbottom
246c2ecc87
Introduce availabilty classes
This are to replace the partner wrappers.
пре 12 година
David Winterbottom
b902f33fcb
Add tests for WrappedStockRecord
пре 12 година
David Winterbottom
9bdce05760
Add basic tests to availability, prices and strategy modules
пре 12 година