336ed2317c
Merge pull request #198 from ixc/198_delete_variants_of_descendants
...
Variants are not deleted for page descendants
2019-09-19 09:57:18 +02:00
43b5b62e60
Clean up test_static_dynamic_segments.py so it passes flake8 ( #199 )
...
* WP-1 clean up tests to pass flake8
* WP-1 undo yapf!
2019-03-16 08:27:37 +01:00
69a4514129
update testcode
...
run isort
2019-03-15 12:58:30 +01:00
4ae8a5e60b
postmerge fixes
2019-03-15 11:46:44 +01:00
d7ad1be51f
Merge preakholt changes
2019-03-15 11:21:14 +01:00
d775ef57e6
Ensure variants are deleted for page decendants
2019-01-24 16:59:44 +11:00
60675203c6
fixed some comments
2019-01-10 14:51:43 +02:00
ceef806301
add tests for varient exclusion use cases
2019-01-10 14:47:18 +02:00
9235932f00
update exclude varient format and add variants to tests
2019-01-10 12:41:53 +02:00
f054b86e07
fix flake error in conftest
2019-01-09 17:25:56 +02:00
cbb56847ae
fix flake8 error
2019-01-09 17:17:51 +02:00
b135e79c77
remove trailing print
2019-01-09 17:04:00 +02:00
c07b280276
allow database access for tests
2019-01-09 16:55:06 +02:00
94a5c6b289
tests for querysets in variant_exclude
2019-01-09 16:54:28 +02:00
d3f4d42d82
Define panel for rules to handle InlinePanel changes
2019-01-02 16:51:56 +02:00
1c74e6cfb9
Update Wagtail imports to work for 2.0
2018-12-18 13:32:02 +02:00
1f464adaa7
Do not generate sitemap entries for variants ( #187 )
2018-09-25 07:57:41 +02:00
d15f6c37d3
Return 404 if variant page is accessed directly ( #188 )
2018-09-25 07:57:06 +02:00
7d679d7111
Add origin country rule ( #190 )
2018-09-25 07:51:25 +02:00
a47803eca5
Delete related variants when deleting the segment ( #183 )
...
* Delete related variants when deleting the segment
Closes #155
* Fix typo
* Fix migration ordering
* Split metadata migrations
2018-07-19 12:59:46 +02:00
0fd6d4d2e5
Delete variants of a page that is being deleted
2018-07-06 15:11:03 +01:00
0bdb80f25a
improve SessionSegmentAdapter
2018-05-26 16:04:11 +02:00
4ad097b4fa
include wagtail-2.1 in test matrix
2018-05-26 14:57:03 +02:00
12f110d913
remove customer manager again for now
2018-05-26 14:35:53 +02:00
4f3f9a4d40
lint
2018-05-26 12:28:01 +02:00
9710d3b479
post-merge cleanups
2018-05-26 11:45:28 +02:00
5536adc3ec
Merge branch 'develop' into feature/djangoconf-sprint
2018-05-26 10:48:33 +02:00
fde53ea0ef
Fix all tests for django and wagtail 2
2018-03-16 11:45:07 +01:00
22a7367211
Update module paths for tests
2018-03-16 11:16:47 +01:00
7f5e958ee3
Catch the exception if the visit count rule doesn't have a page
2018-03-09 19:20:30 +02:00
74d3123084
Ensure static segments don't have one extra user
2018-03-08 13:14:29 +02:00
0efd3ae937
Update tests for new static segment population
2018-02-26 14:34:02 +02:00
f898dfe017
Actually add tests for segment users view
2018-02-22 16:12:24 +02:00
8ced5bd81c
Fix flake8
2018-02-22 15:15:01 +02:00
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
fdc0a7f2e1
Get user info for Visit count rule
2018-02-21 19:08:29 +02:00
330557be8d
Make VisitCountRule.test_user actually test with only a user
2018-02-21 18:48:44 +02:00
364cb1a7e6
Query rule should not be static
2018-02-20 15:08:12 +02:00
4fd0b30c66
Check rules test skipped if segment excluded by session
2018-02-12 18:56:13 +02:00
c909852b08
Add tests
2018-02-12 18:01:01 +02:00
0f18024ebc
Tests
2018-02-09 12:36:34 +02:00
824e42174f
Tests
2018-02-08 19:48:31 +02:00
086168954d
Test randomisation of static segments at creation
2018-02-05 12:30:12 +02:00
881090f2f9
Test randomisation for dynamic segments
2018-02-05 12:21:09 +02:00
602919d2d4
Test randomisation percentage added to segments
2018-02-02 10:14:18 +02:00
5ad70d68f6
Don't include staff and inactive users when counting matched users
2018-01-26 15:38:26 +02:00
d5e89d374b
Remove unnecessary imports
2018-01-25 19:51:50 +02:00
5b39e82f80
Fixed test for adding user counter to segment
2018-01-25 18:42:38 +02:00
fbcebb43a4
Store record count on a segment when it is created
2018-01-25 15:14:19 +02:00
ef271587ec
Test count_matching_users method
2018-01-25 13:26:05 +02:00