dfirst
79eb14e93b
Improve validation logic of reviews sort order form
Fixes #2579 .
7 gadus atpakaļ
Samir Shah
349ae18be2
Reduce maximum line length in flake8 config to 119 characters.
7 gadus atpakaļ
Samir Shah
93fb9555c3
Drop support for category URLs without a primary key.
See #1674 .
7 gadus atpakaļ
Samir Shah
100edceea1
Remove support for deprecated product alert email templates.
7 gadus atpakaļ
Aliaksei Urbanski
ed8f9f1206
Make OrderPlacementMixin more customizable (#2732)
Pass communication event type code to OrderPlacementMixin.get_message_context()
7 gadus atpakaļ
Samir Shah
a7edc8ba2f
Drop mock in favour of unittest.mock
7 gadus atpakaļ
Samir Shah
e2b8a5b63a
Replace calls to ugettext with gettext.
7 gadus atpakaļ
Samir Shah
13e2ed127c
Remove all uses of six.
7 gadus atpakaļ
Samir Shah
8560a90490
Replace calls to super(ClassName, self) with super().
7 gadus atpakaļ
Samir Shah
ec3791c371
Remove py2-specific imports, tests and code branches.
7 gadus atpakaļ
Samir Shah
e2bed3fd95
Remove u prefix from all Python strings.
7 gadus atpakaļ
Samir Shah
87625ef6b6
Use Django's class-based authentication views.
The procedural views were deprecated in Django 1.11 and will be removed in Django 2.1.
7 gadus atpakaļ
Samir Shah
1651bf230f
Upgrade select2 to v4.0, and refactor RemoteSelect widget to work with it.
8 gadus atpakaļ
Samir Shah
86fe75de4d
Remove unnecessary webob dependency from oscar.test utils.
Fixes #2547 .
8 gadus atpakaļ
erickmk
9a14f5e28a
Remove several compatibility helpers for Django < 1.11.
8 gadus atpakaļ
Samir Shah
8a3288da43
Drop support below Django 1.11
8 gadus atpakaļ
yn_coder
2f76e31e08
Mark notification as read only when the detail view is visited. Fixes #2548.
8 gadus atpakaļ
Samir Shah
89ff0b3da4
Fix URL character validation in dashboard PageUpdateForm.
Also fix the max_length on the url field. The underlying model field has
a max_length of 100, so it is invalid to have a larger value here.
DRY out dashboard page update/create views.
Refactor tests - perform tests of form logic directly rather than indirectly through view code.
Fixes #2559 .
8 gadus atpakaļ
Samir Shah
6b0267ed3a
Make ConditionalOffer.priority editable from dashboard. Fixes #2494.
The priority isn't strictly a "restriction", but this seems like the most sensible form to add it to.
8 gadus atpakaļ
Samir Shah
2c5c428e35
Order items in ProductAlertListView by date created, descending.
8 gadus atpakaļ
Joseph Wayodi
956b5b7853
Add management of attribute options in dashboard (#2448)
8 gadus atpakaļ
Samir Shah
2ee352214e
Fix site notifications generated by send_product_alerts.
Notification subjects have a max length of 255 characters, which can easily be exceeded by long product names. Change the alert logic to provide a short notification subject and put the longer content in the notification body.
This patch also modifies the notification utils to make it obvious that the positional argument is a notification subject, not a body.
8 gadus atpakaļ
Samir Shah
eea76f44c0
PEP8 cleanup, stop allowing PEP8 failures on Travis.
8 gadus atpakaļ
Samir Shah
c7dd981fea
Add some more tests for ProductAlert form validation.
8 gadus atpakaļ
Samir Shah
17193a4d08
Don't allow multiple unconfirmed product alerts for anonymous users.
This is to prevent the possibility of spamming a user by generating lots of alert confirmation emails for product alerts.
Also allow unconfirmed alerts to be cancelled - we send a cancellation link in the confirmation email, so we should let users cancel an alert if they don't want to confirm it.
Fixes #2401 .
8 gadus atpakaļ
Samir Shah
d351847f6a
Add more tests for product alerts, save alerts sent to registered users, and notes to the docs.
8 gadus atpakaļ
Samir Shah
d415c34ccb
Add documentation and tests for multi_option attribute.
8 gadus atpakaļ
Samir Shah
cefb76f5bb
Replace deprecated assertEquals with assertEqual in tests.
8 gadus atpakaļ
Samir Shah
e690fe3165
Fix logic for determining 'hurry mode' on alerts. Fixes #2100, #2103.
8 gadus atpakaļ
Alexander Gaevsky
a96079eb01
Add test for user search in dashboard when user name contains from more than 2 parts.
9 gadus atpakaļ
Alexander Gaevsky
5de4cfd6cc
Extract cookies from TestApp instance, instead of Client instance. Make sure extracted basket cookie value is unquoted in the tests.
9 gadus atpakaļ
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.
9 gadus atpakaļ
Michael van Tellingen
c26642732b
Remove the oscar.test.decorators module
9 gadus atpakaļ
Alexander Gaevsky
757220ce09
Remove Django Test Client usages in favor of WebTestCase.
9 gadus atpakaļ
Michael van Tellingen
c6db096e80
UnitTest.assertEqual instead of .assertEquals()
Latter one is deprecated
9 gadus atpakaļ
Michael van Tellingen
db33f8f158
Fix Python 3 issue with the Offer reports
A dict_values object was returned instead of a list. See #2223
9 gadus atpakaļ
Michael van Tellingen
1ba28fda59
Fix tests
9 gadus atpakaļ
Michael van Tellingen
aafcc8a901
flake8
9 gadus atpakaļ
Pete Graham
d5d0c4059e
Modify assert technique so test passes
Future tasks is to dig into self.assertRedirectsTo wouldn't work with the test
as it stands
9 gadus atpakaļ
Alexander Gaevsky
6169826571
Show warning message if there is more than one product stock record has same SKU during product range edit in the dashboard.
9 gadus atpakaļ
Alexander Gaevsky
26ab156541
Add test for product attribute update through the product edit page in the dashboard.
9 gadus atpakaļ
Alexander Gaevsky
afc6d6b814
Make sure wish list does not contain given product before moving to it.
9 gadus atpakaļ
Michael van Tellingen
1859d71d94
Create a separate dashboard login/logout
This provides a minimal login template to access the dashboard. This is
especially useful when the shop doesn't provide accounts.
See #1474
9 gadus atpakaļ
Michael van Tellingen
c030a13359
Fix failing unittests
9 gadus atpakaļ
Michael van Tellingen
7667e1c5d9
Fix tests to match updated translations
10 gadus atpakaļ
Martijn Jacobs
5f50b9112a
Added test for directly saving without all the steps, added test for the dashboard offer-list page.
10 gadus atpakaļ
Denis Darii
6a595084f4
Some tests in TestCatalogueViews
These tests will fail without this PR fix.
10 gadus atpakaļ
Michael van Tellingen
93d0fe8325
Add `clear_url_caches()` to reload_url_conf() in the functional test
10 gadus atpakaļ
Michael van Tellingen
63d6547e98
Various import fixes which were removed in Django 1.9
10 gadus atpakaļ
John Parton
541075fe0d
Replace assert statements with appropriate assert* method.
Replace 'assert' with 'assert*' method.
Convert tests.unit.forms.widget_tests to use TestCase class.
Convert bankcard tests to use TestCase.
Convert tests.unit.logging_tests to use TestCase.
10 gadus atpakaļ