Joseph Wayodi
d0796cdc2b
Fix checkout.ThankYouView.get_object to never raise DoesNotExist error
Also fix "is_anonymous" attribute value in WebTestCase subclass.
5 years ago
Alexander Gaevsky
31c935cf1d
Change checkout thank you view to redirect to the homepage if order not found in the session. (#3506)
5 years ago
Viggo de Vries
81ec4da73a
Pass shipping charge as a kwarg to the surcharge calculator (#3481)
5 years ago
Viggo de Vries
24b349836e
Add new feature Surcharges.
6 years ago
Samir Shah
3f67ce9b76
Apply isort fixes on the whole project.
6 years ago
Samir Shah
a7edc8ba2f
Drop mock in favour of unittest.mock
7 years ago
Samir Shah
8560a90490
Replace calls to super(ClassName, self) with super().
7 years ago
Samir Shah
8a3288da43
Drop support below Django 1.11
8 years ago
Samir Shah
e5c84703dd
Rename PhoneNumberMixin.phone_numbers_fields to phone_number_fields and add to docs.
phone_number_fields is more correct grammatically.
Add to the dosctring for the class, and display it in the documentation.
8 years ago
Basil Dubyk
6cb796faaf
Add ability to add many phone number fields
With this change phone numbers (any qty) can be added as `ModelForm`
property `phone_numbers_fields` - dict where "keys" are names of
phone numbers fields and "values" are attributes of fields.
* `PhoneNumberMixin` clightly reworked and moved
from `oscar.views.generic` to `oscar.forms.mixins`
* Couple tests added (based on previous tests)
8 years ago
Samir Shah
be42c517a5
Only send analytics transaction events on the first load of the checkout thank you page.
Subsequent views of the page (for the same order) should not trigger an event.
Fixes #2413 .
8 years ago
Samir Shah
808ca569c3
Do not attempt to parse a phone number for a country when no country is set.
Fixes #2277 .
8 years ago
Samir Shah
cefb76f5bb
Replace deprecated assertEquals with assertEqual in tests.
8 years ago
Alexander Gaevsky
8b19afc746
Create `PaymentEventQuantity` for all payment events as well as for all order lines.
8 years ago
Alexander Gaevsky
4880a06f2a
Fallback to None when passing request to order creator, add tests for site determination using request in the order creator.
9 years ago
Samir Shah
8f7c603d25
Add tests for OSCAR_REQUIRED_ADDRESS_FIELDS setting.
9 years ago
Alexander Gaevsky
96208ec52e
Add test for address book update on shipping or billing address creation.
10 years ago
Michael van Tellingen
0ebe344a27
Merge tests.integration with tests.unit
The idea of splitting integration from unittests is good in theory
but leads to a lot of mental overhead. Besides whenever a tests
interacts with a database it isn't a unittest anyway.
9 years ago