8
Commit Graph

103 Commits

Author SHA1 Message Date
Bertrand Bordage
38a18f80a4 Merge pull request #146 from LabD/simplifications+optimisations
Handles both Python 2 & 3, and multiple optimisations & simplifications.
2017-05-31 17:50:56 +02:00
Bertrand Bordage
85613db363 Merge branch 'simplifications+optimisations' of github.com:LabD/wagtail-personalisation into simplifications+optimisations 2017-05-31 17:43:18 +02:00
Bertrand Bordage
f88722c827 Further simplifications. 2017-05-31 17:38:51 +02:00
Michael van Tellingen
e6fac5f7fb Fix templatetag tests 2017-05-31 17:19:24 +02:00
blurrah
82f2dd460e adds tests for templatetag 2017-05-31 17:19:24 +02:00
Paul J Stevens
99d2e4a347 support multiple uses of the mixin class (#140) 2017-05-31 16:50:56 +02:00
Michael van Tellingen
63d5de9803 Optimize query for the segment visits 2017-05-31 16:37:10 +02:00
Michael van Tellingen
5eefa21699 Add test for sessionadapter.refresh when segment is disable 2017-05-31 16:19:09 +02:00
Michael van Tellingen
03073eb004 Add unittests for the session adapter 2017-05-31 16:13:30 +02:00
Paul J Stevens
1b73119766 post rebase fixes 2017-05-31 15:59:09 +02:00
Paul J Stevens
ebef7f8785 refactor and add tests 2017-05-31 15:59:09 +02:00
Paul J Stevens
623af1a06a start using correct model in tests 2017-05-31 15:59:09 +02:00
Paul J Stevens
f693e62bbf rename base-class to reflect mixin nature 2017-05-31 15:59:09 +02:00
Paul J Stevens
4e61ff0d08 remove all references or uses of old PersonalisablePage model 2017-05-31 15:59:09 +02:00
Michael van Tellingen
9790a44fd1 Add migrations to the tests.sandbox.pages app
This fixes tests
2017-05-31 13:57:19 +02:00
Michael van Tellingen
7436384471 Move visit count logic to the segment adapter
This makes the code also a bit simpler and updates the tests
2017-05-31 13:57:19 +02:00
Michael van Tellingen
3eac2cd4dd Codestyle fixes (flake8)
This also adds the flake8 dependencies to the test extras for
installation.
2017-05-28 09:13:08 +02:00
Jasper Berghoef
ebde527ae9 Renames the module from ‘personalisation’ to ‘wagtail_personalisation’ 2017-05-26 16:31:54 +02:00
Jasper Berghoef
5f1c52c93c Fixes persistent rule persisting 2017-05-24 21:21:24 +02:00
Michael van Tellingen
02e18491bb Fix test dependencies and skip one test for now 2017-05-24 17:05:34 +02:00
blurrah
e451f792e3 adds sqlite to sandbox and fixes summary panel 2017-05-08 10:39:30 +02:00
blurrah
ec7b00c318 adds a few docblocks and isorts 2017-05-03 15:04:52 +02:00
Jasper Berghoef
6640bf8d74 Splits test factories and updates documentation 2017-04-25 16:15:33 +02:00
Jasper Berghoef
d468c68970 Changes reference to rule models in adapter and tests 2017-04-19 11:40:21 +02:00
Michael van Tellingen
8e754fef07 Use wagtail-factories for testing 2017-02-18 22:46:51 +01:00
Jasper Berghoef
597c0a50f0 Device detection and accompanying rule
Signed-off-by: Jasper Berghoef <jasper.berghoef@gmail.com>
2017-01-11 15:28:40 +01:00
Jasper Berghoef
a7b477d71f Day rule and accompanying tests
Signed-off-by: Jasper Berghoef <jasper.berghoef@gmail.com>
2017-01-10 15:36:25 +01:00
Boris Besemer
b7ca6541f4 fixes match any testing 2017-01-10 12:52:10 +01:00
Boris Besemer
cf946f2bee removes related prefetch 2017-01-10 12:37:36 +01:00
Boris Besemer
5f8c768894 adds match_any option to segments 2016-12-22 14:25:00 +01:00
Boris Besemer
0087a8e2a5 adds test for page impersonation 2016-12-07 15:46:00 +01:00
Boris Besemer
48f1f0a61d adds python 2.7 compatibility 2016-12-07 15:28:49 +01:00
Boris Besemer
ce619b4117 adds middleware functionality with tests 2016-12-07 11:40:58 +01:00
Boris Besemer
68b05d27ea isort and cleaning up 2016-12-06 14:37:53 +01:00
Boris Besemer
29b9ad695b moves all middleware logic to wagtail hook 2016-12-06 12:17:50 +01:00
Boris Besemer
3ca81d8535 changes values and adds tests 2016-12-06 11:06:02 +01:00
Boris Besemer
a5f72aa349 adds checking for admin urls 👌 2016-12-05 15:29:16 +01:00
Boris Besemer
574112a47c squashes migrations, breaks current installs 2016-12-05 08:49:42 +01:00
Boris Besemer
510ed6d7c7 adds a few more middleware tests 2016-12-01 12:00:51 +01:00
Boris Besemer
b405381942 sorts with isort 2016-11-30 17:21:43 +01:00
Boris Besemer
fd4ddc4395 adds segment middleware testing (simple) 2016-11-30 17:20:42 +01:00
Boris Besemer
2f5df08fc4 adds more testing for segments 2016-11-30 14:50:51 +01:00
Boris Besemer
2936223203 added lots of factories on top of factories 2016-11-30 14:38:14 +01:00
Boris Besemer
7306863fd8 adds related factory 2016-11-30 10:45:33 +01:00
Boris Besemer
8b72bcbe3c more factories 2016-11-30 09:12:41 +01:00
Boris Besemer
7c6608cf2c adds more testing stuff 2016-11-30 08:35:11 +01:00
Boris Besemer
3b592d21d2 adds some more tests 2016-11-28 17:30:07 +01:00
Boris Besemer
7fda39bed5 fixes test sandbox and pytest 2016-11-28 15:20:10 +01:00
Boris Besemer
ce59df3f0a adds variation add view and fixes tests 2016-11-15 13:36:51 +01:00
Boris Besemer
21c77e5cc6 docstring fixes and isort 2016-11-15 11:07:43 +01:00