Commit Graph

73 Commits

Author SHA1 Message Date
Raphael Michel
8085d7e281 Do not check for plugin type in tests 2016-11-03 11:50:50 +01:00
Raphael Michel
e8b28f88eb Do not try to unserialize multiple times when a setting is inherited 2016-11-01 10:46:18 +01:00
Tobias Kunze
c5fdf7c215 Include global settings in event/organizer settings
Also, add tests
2016-10-31 19:03:41 +01:00
Raphael Michel
8c4023f065 Add regression tests for bug fixed in d8b833c 2016-10-30 16:58:19 +01:00
Tobias Kunze
aa63a4cded Improved voucher interface with new methods (#284)
* Check that a voucher's variation matches its item

* Add method to check applicability of a voucher

* Add method to check if a voucher can be used

* Add tests for new voucher methods

* Test for ValidationErrors in Voucher.clean()

* Test for voucher state during ordering process
2016-10-24 12:40:06 +02:00
Raphael Michel
503f6dd06f Use consistent flake8 settings everywhere and fix flake8 issues 2016-10-13 22:57:57 +02:00
Raphael Michel
0248f4f333 SettingsTestCase: Fix unclosed resources 2016-10-03 10:40:01 +02:00
Raphael Michel
efc6b6e480 Resolved various warnings, upgrade bootstrap3 2016-09-27 10:50:13 +02:00
Raphael Michel
8d70153a39 Refactored test utilities 2016-09-26 15:58:14 +02:00
Raphael Michel
68987970bf OrderChangeManager: Deal with unlimited quotas correctly 2016-09-26 14:13:33 +02:00
Raphael Michel
48791b2f02 Refs #250 -- Keep payment deadlines on weekdays 2016-09-25 12:19:15 +02:00
Raphael Michel
1faacef9d4 Always process tasks through celery (#245) 2016-09-21 10:38:31 +02:00
Enrique Saez
841cfe52a2 Fix #91 -- Make products/orders that are not cancelable (#204)
* Make products/orders that are not cancellable
Update Unit Tests

* Make use of select_related instead of prefetch_related
Simplify cancellable logic
Migrations

* Simplify cancellable logic
Maske use of select_related instead of prefetch_related

* Fix cancelable condition bug
2016-09-01 08:55:02 +02:00
Raphael Michel
b21ed4d99f Fix #163 -- Form to change orders (#191) 2016-08-31 19:10:11 +02:00
Raphael Michel
c30ff5e657 Only call now() once inside any event.lock() call 2016-08-29 22:33:51 +02:00
Tobias Kunze
87a77989e7 Disallow cancelling an expired order
as per discussion on #165
2016-08-24 15:26:54 +02:00
Tobias Kunze
4191f93ece Add setting determining invoice number format (#193) 2016-08-16 21:18:39 +02:00
Raphael Michel
63b683096b Resolved two more edge cases in quota handling
Scenario 1) Blocking voucher is used in a CartPosition. Previously
too much was subtracted from the quota.

Scenario 2) When two quotas are assigned to a product and one of them
is sold out, blocking vouchers for the other quota should not enable to
buy the product.
2016-08-15 22:55:18 +02:00
Raphael Michel
f2baf79a52 Properly implement and test quota checking in the voucher admin
This also fixes #170
2016-08-15 11:55:51 +02:00
Raphael Michel
fe6de0f635 Added ignored_quotas argument to check_quotas() 2016-08-15 11:48:48 +02:00
Raphael Michel
7b5dd6bd6c Speed up the test suite 2016-08-14 17:56:58 +02:00
Raphael Michel
42b9559b6f Removed selenium as a test dependency 2016-08-14 17:20:33 +02:00
Raphael Michel
e881abd631 Fixed test that was broken due to 6d54239 2016-08-14 17:19:00 +02:00
Raphael Michel
d8a84e762f Replaced first selenium tests with bs4 2016-08-14 12:15:57 +02:00
Raphael Michel
58e706b721 Fixed bug in quota calculation (thanks @rixx!) 2016-08-04 18:00:28 +02:00
Raphael Michel
2541855948 Fixed missing or unused imports 2016-07-18 23:12:16 +02:00
Raphael Michel
749e44f6e4 Fixed broken test 2016-05-08 13:06:51 +02:00
Raphael Michel
944b5db0bf Refs #82 -- Make order expiry more clear (#116) 2016-05-07 17:03:32 +02:00
Raphael Michel
09cee356b0 Allow for vouchers that are valid for multiple items 2016-05-04 17:50:19 +02:00
Raphael Michel
d96da427e1 Fixed invoice test 2016-03-24 14:38:10 +01:00
Raphael Michel
b2985ba8b4 Added tests for invoicing and template tags 2016-03-24 14:12:20 +01:00
Raphael Michel
be4435cdd8 Added test for serialization of LazyI18nString in settings 2016-03-24 14:12:20 +01:00
Raphael Michel
e3ac04fe86 Use pytest parameters for the plugin registry tests 2016-03-24 14:12:20 +01:00
Raphael Michel
842b058efd Fixed an quota calculation issue 2016-03-22 17:43:35 +01:00
Raphael Michel
9efce8f203 Fixed #132 -- Reverse payment fee calculation 2016-03-13 19:10:45 +01:00
Raphael Michel
c28b40a118 Unit Tests should create enabled events 2016-02-23 08:58:39 +01:00
Raphael Michel
f748752391 Removed multi-dimensional item variations [backwards-incompatible] 2015-12-13 15:03:56 +01:00
Raphael Michel
58b85819bc Added logging for all basic operations 2015-12-12 22:53:11 +01:00
Raphael Michel
d133d2abff Removed CleanerVersion layer [backwards-incompatible!] 2015-12-12 13:08:33 +01:00
Raphael Michel
e70485e7fb Re-added the ability to restrict a product sale by time 2015-12-06 18:18:54 +01:00
Raphael Michel
4a1122a862 Fixed #108 -- Removed the restrictions system 2015-12-06 17:49:02 +01:00
Raphael Michel
a2af3db771 Added the option of unlimited quotas 2015-10-21 16:31:58 +02:00
Raphael Michel
974c5cee79 Moved property to the inside of items 2015-10-08 12:45:19 +02:00
Raphael Michel
c4638a3402 Enabled asynchronous cart/order actions 2015-10-05 11:33:53 +02:00
Raphael Michel
93d027cec6 Make all orders "guest orders" 2015-10-05 11:24:00 +02:00
Raphael Michel
7fc56b77db Fixed #98 -- Handle deletion of cached files 2015-09-29 16:46:45 +02:00
Raphael Michel
21e71f97c1 Added a test for the type of default values 2015-09-29 15:34:37 +02:00
Raphael Michel
24c76baec2 Added tests for order expiry dates 2015-09-28 23:18:52 +02:00
Raphael Michel
1c89fec808 Fixed import sorting 2015-09-28 23:11:46 +02:00
Raphael Michel
c67a70369d Added tests for our locking system 2015-09-28 23:01:03 +02:00