Izidor Matušov
1d44ae7916
Test new line is removed from the message subject
12 years ago
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 years ago
David Winterbottom
f13df6ff65
Reorganise address tests
12 years ago
David Winterbottom
752663dde9
Convert Address name and salutation to properties
12 years ago
David Winterbottom
441f9ffc1b
Update bankcard model
12 years ago
David Winterbottom
5009eaad6a
Update Bankcard form
12 years ago
David Winterbottom
65e6effd73
Update payment forms (and tests)
Fields now more self-contained, the bankcard form is much simpler.
12 years ago
David Winterbottom
c66a2e0161
Update the bankcard type sniffing function
12 years ago
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 years ago
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 years ago
chenull
4289f882b5
Support Django's 1.5 AUTH_USER_MODEL feature
13 years ago
David Winterbottom
0aed77500a
Rework ExtendedURLValidator and tests
* Tidy implementation of validator
* Tests improved and moved to tests/integration (as they call resolve
internally)
13 years ago
David Winterbottom
e5310f1147
Adjust test generator to make tests pass
12 years ago
David Winterbottom
686fbfeb68
Introduce new widgets that pick up locale date formats
12 years ago
Maik Hoepfel
b51aa59ef5
AddToBasketForm now handles options properly
When adding to the basket, products with options were treated as
different products for each combination of options. This allowed adding
more products into the basket than are available for purchase.
The handling has been updated to sum up the already added quantity of
the product regardless of options.
Fixes #665
12 years ago
David Winterbottom
03676aedf7
Use nose test generators instead of @dataProviders
12 years ago
David Winterbottom
b17b9b75df
Move assert function to module level for generator tests
This is required for multiprocess testing to work (eg ./runtests.py
--processes=2)
12 years ago
David Winterbottom
f9799d5029
Reorganise payment tests
12 years ago
Maik Hoepfel
7b809d3a5f
get_classes now allows top-level apps.
Fixes #614
12 years ago
David Winterbottom
94e9de23c8
Fix fixtures for import tests
12 years ago
David Winterbottom
fe0a37a780
Add compose function for combining decorators
12 years ago
David Winterbottom
51e188f37b
Reclassify order tests as integration tests
As they save stuff...
12 years ago
David Winterbottom
9157a54438
Don't allocate stock for product classes with track_stock=False
We now check in the OrderCreator for this attribute and only allocate if
it is true.
Fixes #671
12 years ago
David Winterbottom
02b3644e3c
Fix validation error in dashboard voucher form
The clean method was raising a KeyError when the date fields were empty.
13 years ago
Skirmantas Jurgaitis
739dd1c9d2
Fixed github issue #624: UnicodeDecodeError when exporting orders as CSV
13 years ago
Sebastian Vetter
e1d3c2f707
Fix error when trying to delete empty image field
13 years ago
David Winterbottom
27b1980bdd
Alter the way shipping discounts are handled
They aren't treated specially any more. They become part of the
'applications' collection rather than being attached to the basket.
13 years ago
David Winterbottom
7a49678fd3
Add support for showing a custom message on basket page
13 years ago
David Winterbottom
f9c6c052a2
Rework offer benefits to return result object
This paves the way for custom benefits to return successful applications
that don't lead to a discount.
13 years ago
Matt Miller
604f7f435c
Adding __setstate__ magic resolves pickle error
By adding the __setstate__ method an infinite loop is avoided regarding
the use of __getattr__ on the ProductAttributesContainer model.
Moving tests into appropriate folder
13 years ago
David Winterbottom
af2dee1965
Add slug blacklist setting
So stopwords can be moved from slugs
13 years ago
David Winterbottom
d41dc28d4b
Add support for a custom slug mapping setting
13 years ago
David Winterbottom
4eae13ca52
Package core unit tests
13 years ago
David Winterbottom
aa7f899c51
Move catalogue tests to integration folder...
...as they are all integration tests (they save stuff).
13 years ago
David Winterbottom
f80cb5e9fa
Fix warning from bytestrings being slugified
13 years ago
David Winterbottom
8e4d5edd95
Move category tests to integration folder
They use the DB so they are not really unit tests.
13 years ago
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 years ago
David Winterbottom
c0aacf1083
Convert offer dates to datetimes
* This gives more flexibility to offers in how they are used.
* Am using a jQuery datetimepicker from: http://trentrichardson.com/examples/timepicker/
13 years ago
David Winterbottom
e8276066d9
Remove unit test commited to wrong branch
My bad. Committed this test through careless use of 'git add .' as part
of commit 80c1b0b1a7 .
13 years ago
David Winterbottom
80c1b0b1a7
Fix broken functional tests!
I forgot to modify the test config to account for django-compressor.
13 years ago
David Winterbottom
d87139543a
Re-order steps in offer dashboard wizard
Following guidance from Tangent's UX team (blame them!)
* Split 'metadata' step into 'name and description' and 'restrictions'
* Add progress bar
* Add summary of entered data in right-hand sidebar
* Clean up breadcrumbs and URLs
Still needs from FED love.
13 years ago
David Winterbottom
b2bbaf2e91
Switch functional tests to use WebTest
13 years ago
David Winterbottom
5762fafc04
Offers can now be suspended and reinstated
Uses new status on offer model.
13 years ago
David Winterbottom
68b417dee5
Rename test site folder for consistency
Distinguish it from the other folders which each define a category of
test.
13 years ago
David Winterbottom
ce0cef6033
Split voucher testcase for better coherence
13 years ago
David Winterbottom
2781b895f6
Trim fat from testcase
Use global instead of per-method test dates.
13 years ago
David Winterbottom
dd7b661e20
Vouchers are now active ON their end date
13 years ago
David Winterbottom
1573989b53
Add a status field to offers
This makes it more efficient to load offers now that we can't simply use
the date filters to exlucde unavailable offers.
The is_active field has been reworked to depend on the
get_max_applications method.
The save method of ConditionalOffer now auto-sets status.
Fixes #403
13 years ago
David Winterbottom
e5d78436e2
Split offer tests into unit/integration folders
This might be futile.
13 years ago
David Winterbottom
a84bb16cd5
Add max_discount option for offers
This allows the total discount of an offer to be capped. It's a
slightly odd mechanism as the offer only becomes inactive once the cap
is exceeded, and it's possible that it is exceeded by a lot.
However, it's still a useful construct for managing offers.
13 years ago