7
Commit Graph

105 Commits

Author SHA1 Message Date
Paul J Stevens
9710d3b479 post-merge cleanups 2018-05-26 11:45:28 +02:00
Paul J Stevens
5536adc3ec Merge branch 'develop' into feature/djangoconf-sprint 2018-05-26 10:48:33 +02:00
blurrah
fde53ea0ef Fix all tests for django and wagtail 2 2018-03-16 11:45:07 +01:00
blurrah
22a7367211 Update module paths for tests 2018-03-16 11:16:47 +01:00
Kaitlyn Crawford
7f5e958ee3 Catch the exception if the visit count rule doesn't have a page 2018-03-09 19:20:30 +02:00
Kaitlyn Crawford
74d3123084 Ensure static segments don't have one extra user 2018-03-08 13:14:29 +02:00
Kaitlyn Crawford
0efd3ae937 Update tests for new static segment population 2018-02-26 14:34:02 +02:00
Kaitlyn Crawford
f898dfe017 Actually add tests for segment users view 2018-02-22 16:12:24 +02:00
Kaitlyn Crawford
8ced5bd81c Fix flake8 2018-02-22 15:15:01 +02:00
Kaitlyn Crawford
9408f90789 Use mock for testing matching user count
The fake class was causing other tests to fail because it inherits from AbstractBaseRule but isn't in the database.
I removed it and replaced it with mocked calls
2018-02-22 14:23:14 +02:00
Kaitlyn Crawford
fdc0a7f2e1 Get user info for Visit count rule 2018-02-21 19:08:29 +02:00
Kaitlyn Crawford
330557be8d Make VisitCountRule.test_user actually test with only a user 2018-02-21 18:48:44 +02:00
Kaitlyn Crawford
364cb1a7e6 Query rule should not be static 2018-02-20 15:08:12 +02:00
Kaitlyn Crawford
4fd0b30c66 Check rules test skipped if segment excluded by session 2018-02-12 18:56:13 +02:00
Kaitlyn Crawford
c909852b08 Add tests 2018-02-12 18:01:01 +02:00
Kaitlyn Crawford
0f18024ebc Tests 2018-02-09 12:36:34 +02:00
Kaitlyn Crawford
824e42174f Tests 2018-02-08 19:48:31 +02:00
Kaitlyn Crawford
086168954d Test randomisation of static segments at creation 2018-02-05 12:30:12 +02:00
Kaitlyn Crawford
881090f2f9 Test randomisation for dynamic segments 2018-02-05 12:21:09 +02:00
Kaitlyn Crawford
602919d2d4 Test randomisation percentage added to segments 2018-02-02 10:14:18 +02:00
Kaitlyn Crawford
5ad70d68f6 Don't include staff and inactive users when counting matched users 2018-01-26 15:38:26 +02:00
Kaitlyn Crawford
d5e89d374b Remove unnecessary imports 2018-01-25 19:51:50 +02:00
Kaitlyn Crawford
5b39e82f80 Fixed test for adding user counter to segment 2018-01-25 18:42:38 +02:00
Kaitlyn Crawford
fbcebb43a4 Store record count on a segment when it is created 2018-01-25 15:14:19 +02:00
Kaitlyn Crawford
ef271587ec Test count_matching_users method 2018-01-25 13:26:05 +02:00
Kaitlyn Crawford
a00929846e Set query rule to be static 2018-01-18 16:17:30 +02:00
Alex Muller
e3488e87ad Enable and fix lint 2018-01-08 09:08:11 +00:00
Alex Muller
808aa6d202 Add tests for exclude_variants 2018-01-08 09:07:15 +00:00
Todd Dembrey
23b1456438 Add tests which cover anonymous users 2017-11-01 17:10:03 +00:00
Todd Dembrey
1f4a4536ab Make the static elements tracked users only
We cannot track anonymous users as the session expires after 10 minutes of
inactivity. This also avoids an issue where there is an error when the user's
session has expired and they navigate a page
2017-11-01 16:43:22 +00:00
Todd Dembrey
7cf22d05f6 Tidy up the logic checks and remove the frozen property 2017-10-26 10:55:13 +01:00
Todd Dembrey
9e0fc8e6fd Make the static segments work with match_any and fix bug in visit count 2017-10-24 10:50:05 +01:00
Todd Dembrey
a116b14d57 Update to use the save method on the form to populate the segments 2017-10-23 15:46:34 +01:00
Todd Dembrey
44cc95617e Use a form to clean the instance 2017-10-23 15:00:31 +01:00
Todd Dembrey
c6ff2801c5 Update to use a post_init signal to populate the segment 2017-10-20 17:33:47 +01:00
Todd Dembrey
cf41be4b76 Add clean method to ensure mixed static segments are valid 2017-10-20 10:57:19 +01:00
Todd Dembrey
f339879907 Ensure that mixed static and dynamic segments are not populated at runtime 2017-10-20 09:53:18 +01:00
Todd Dembrey
8c96fffd4e Ensure that the session is checked correctly 2017-10-17 17:35:57 +01:00
Todd Dembrey
675d219f1f Add the logic for static segments 2017-10-17 16:57:07 +01:00
Tomasz Knapik
bc91d64770 Add Django 1.9/1.10 and Wagtail 1.9 to tests and requirements 2017-07-11 21:58:26 +02:00
Michael van Tellingen
281086a159 Rename variations to variants 2017-06-02 15:31:46 +02:00
Michael van Tellingen
537dfb12a6 Fix test 2017-06-02 15:16:59 +02:00
Michael van Tellingen
7405c34252 Add missing migration for tests.app.pages (fixes build) 2017-06-02 11:26:57 +02:00
Michael van Tellingen
6f96f2f172 Add more tests for wagtail_hooks 2017-06-02 11:23:39 +02:00
Michael van Tellingen
559d3c5356 Add unittest for serving a regular page
See #150
2017-06-02 10:32:41 +02:00
Michael van Tellingen
5aa754dd80 Rename PersonalisablePageMixin.personalisable_metadata
Use PersonalisablePageMixin.personalisation_metadata instead to mirror
the package name
2017-06-02 10:23:46 +02:00
Michael van Tellingen
282baa4787 Add tests for the wagtail_hooks.serve_variaton 2017-06-02 10:19:32 +02:00
Michael van Tellingen
35c22cb6af Use correct filenames for the tests (and split some) 2017-06-02 10:11:46 +02:00
Michael van Tellingen
6c5ab9c6ae Merge HomePage/SpecialPage to ContentPage in the tests
No need to create separate models with the same functionality
2017-06-02 09:30:04 +02:00
Michael van Tellingen
d92fe13d37 Refactor the test structure
This renames the tests.sandbox app to tests.site to clear up some
confusion with the two sandbox app's.
2017-06-02 09:25:51 +02:00