Samir Shah
a7edc8ba2f
Drop mock in favour of unittest.mock
7 jaren geleden
Samir Shah
8560a90490
Replace calls to super(ClassName, self) with super().
7 jaren geleden
Samir Shah
8a3288da43
Drop support below Django 1.11
8 jaren geleden
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 jaren geleden
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 jaren geleden
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 jaren geleden
Samir Shah
808ca569c3
Do not attempt to parse a phone number for a country when no country is set.
Fixes #2277 .
8 jaren geleden
Samir Shah
cefb76f5bb
Replace deprecated assertEquals with assertEqual in tests.
8 jaren geleden
Alexander Gaevsky
8b19afc746
Create `PaymentEventQuantity` for all payment events as well as for all order lines.
8 jaren geleden
Alexander Gaevsky
4880a06f2a
Fallback to None when passing request to order creator, add tests for site determination using request in the order creator.
9 jaren geleden
Samir Shah
8f7c603d25
Add tests for OSCAR_REQUIRED_ADDRESS_FIELDS setting.
9 jaren geleden
Alexander Gaevsky
96208ec52e
Add test for address book update on shipping or billing address creation.
10 jaren geleden
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 jaren geleden