David Winterbottom
10c92f5946
Annotate shipping tests
12 лет назад
David Winterbottom
bd77a9e6aa
Reorganise shipping tests
Split into unit, integration etc.
12 лет назад
David Winterbottom
986297563d
Use properties for shipping charges
Use charge_incl_tax instead of basket_charge_incl_tax(). This is
clearer.
Backwards compatible versions of the old methods are kept for now.
Related to #805
12 лет назад
David Winterbottom
1054d75b62
Fix broken tests due to all_lines change
12 лет назад
David Winterbottom
352dcf9633
Assign strategy classes to baskets
Hmmm, this turned out to be a monster commit. This change allows the
basket to be able to correctly calculate prices including tax.
It also requires a whole load of test changes since all baskets now
require a strategy instance to be assigned.
12 лет назад
David Winterbottom
a8fbbc33c9
All unit tests pass! yay!
12 лет назад
David Winterbottom
2ebb8630d9
Fix bug introduced in ccd1635 re product factory
The backported version didn't explicitly create the ProductAttribute
instances before assigning and so they didn't save.
12 лет назад
David Winterbottom
bf49946a30
Rework shipping repository to use a 'methods' attribute
This makes creating simple shipping repositories simpler as you only
need to override the methods attribute.
12 лет назад
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.
12 лет назад
chenull
4289f882b5
Support Django's 1.5 AUTH_USER_MODEL feature
13 лет назад
David Winterbottom
03676aedf7
Use nose test generators instead of @dataProviders
12 лет назад
Maik Hoepfel
d06fc31725
Add is_discounted field on ShippingMethod
shipping/models:ShippingMethod was missing the is_discounted attribute that
exists in the de-facto superclass in shipping/base:ShippingMethod.
Also added a few comments to clarify how they relate to each other, and
tests to check if is_discounted is present on various instances of
ShippingMethods.
13 лет назад
David Winterbottom
0dc6816a93
Extract functionality from oscar.test into separate package
Fixes #376
13 лет назад
Paweł Kowalski
1ae2e46455
Test for basket weight with line quantities
13 лет назад
David Winterbottom
feb8c9a327
Moved tests into separate package.
Also split them into unit and functional tests.
13 лет назад
David Winterbottom
52fd1a1200
Fixed tests for scales
13 лет назад
David Winterbottom
da3099380d
Added tests for weight-based shipping method
14 лет назад
David Winterbottom
e82e09718b
Added a core shipping method type.
This is used by the weight-based shipping method but can be used by
others too.
14 лет назад
David Winterbottom
1db4fd5d77
Renamed the shipping methods to be more consistent
14 лет назад
David Winterbottom
addaa0d9be
Updated repository and added tests
14 лет назад
David Winterbottom
a1a4ccc1ca
Added tests for the weight-based shipping calculator
14 лет назад
David Winterbottom
d47a604ff4
Added scales for weighing products and baskets
14 лет назад
David Winterbottom
8a9c548ec5
Weight-based shipping bands now support different method codes
14 лет назад
David Winterbottom
6b7636116a
Made first steps with weight-based shipping method
14 лет назад
David Winterbottom
8e28da10ea
Tidy-up of shipping code plus a few more tests
14 лет назад
David Winterbottom
496a145bc5
Added dataProvider decorator
14 лет назад
David Winterbottom
887d605757
Refactored folder structure to use an 'apps' folder
15 лет назад
David Winterbottom
e3fa1d77ee
Refactored test_helpers into test.helpers package
15 лет назад
David Winterbottom
ba1760f438
Renamed oscar.utils / added meta to voucher
15 лет назад
David Winterbottom
d9d7f8c6bd
Added free delivery threhold to shipping model
15 лет назад
David Winterbottom
758ea9a695
Added extra tests for shipping app.
15 лет назад
David Winterbottom
ef8b7c6d67
Added tests for shipping methods and documentation
15 лет назад