Alexander Gaevsky
31c935cf1d
Change checkout thank you view to redirect to the homepage if order not found in the session. (#3506)
5 vuotta sitten
samitnuk
2af6753c67
Add a new Communication app that manages all of Oscar's communications.
7 vuotta sitten
Samir Shah
3f67ce9b76
Apply isort fixes on the whole project.
6 vuotta sitten
Aliaksei Urbanski
ed8f9f1206
Make OrderPlacementMixin more customizable (#2732)
Pass communication event type code to OrderPlacementMixin.get_message_context()
7 vuotta sitten
Samir Shah
13e2ed127c
Remove all uses of six.
7 vuotta sitten
Samir Shah
8560a90490
Replace calls to super(ClassName, self) with super().
7 vuotta sitten
Samir Shah
ec3791c371
Remove py2-specific imports, tests and code branches.
7 vuotta sitten
Samir Shah
8a3288da43
Drop support below Django 1.11
7 vuotta sitten
Michael van Tellingen
28ea962ab6
Rename all tests files from *_tests.py to test_*.py
Better to use filenames which are commonly used in the python word then
custom ones.
8 vuotta sitten
Michael van Tellingen
174d4dcd67
Consolidate `oscar.test.factories` imports in the test modules
10 vuotta sitten
Michael van Tellingen
6fad63a4d0
Split oscar.test.newfactories in multiple modules
Create a factory module per app and move them under the new
oscar.test.factories module.
10 vuotta sitten
Michael van Tellingen
14cf5f3703
PEP8 fixes
10 vuotta sitten
Marco Badan
0637b55bcd
Improve test coverage in checkout views
Adds new functional tests for ShippingAddressView, PaymentDetailsView
and ThankYouView.
It's the second part of #1645 .
Notes
* Adds a custom template to be able to test some functionalities of
PaymentDetailsView
* Adds an helper to the CheckoutMixin
10 vuotta sitten
Marco Badan
a0ce8f22dc
Update and extend checkout tests
* Uses factory-boy factories
* Adds helpers to the CheckoutMixin helper
* Adds plenty of functional tests
* Adds HTML IDs to some forms to be able to easily reference them
from our tests
@maikhoepfel :
This commit is the squashed version of #1645 , but it
does not contain the template changes. The unused
ShippingAddressView code was already cherry-picked across in 549decb .
I also fixed some PEP8 issues.
10 vuotta sitten
Maik Hoepfel
09f66c35ea
Remove duplicate assertRedirectsToUrlName test helper
We have two methods doing something very similiar, so I'm removing the
one with the worse name.
Thanks go to @itbabu for spotting it in
https://github.com/django-oscar/django-oscar/pull/1645#issuecomment-71896876
10 vuotta sitten
David Winterbottom
478fa0adf5
Ensure HTML IDs use underscores not hyphens
A bit OCD, but I noticed that the checkout forms were an exception in
using a hyphen so I've cleaned up all IDs to use underscores.
11 vuotta sitten
David Winterbottom
21d73a1a96
Rewrite checkout functional tests
We no longer use Django's test client.
11 vuotta sitten