Alex Bridge
c7eaec1315
Wagtail 3 changes
2022-11-08 14:47:25 +00:00
Marcel Hekking
9274073c68
Fix test errors
2021-06-24 07:57:31 +02:00
Marcel Hekking
7101b63122
Check backward compatibility with tox
2020-11-25 15:50:52 +01:00
Marcel Hekking
ffd839159b
Make changes backwards compatible
2020-11-25 12:08:42 +01:00
Marcel Hekking
d074ef85b9
No need for these settings
2020-11-24 09:10:14 +01:00
Marcel Hekking
f3e403bec6
Make compatible with latest Wagtail version (2.11.2)
2020-11-24 09:05:20 +01:00
Boris Besemer
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
Sean Harrison
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
Paul J Stevens
69a4514129
update testcode
...
run isort
2019-03-15 12:58:30 +01:00
Paul J Stevens
4ae8a5e60b
postmerge fixes
2019-03-15 11:46:44 +01:00
Paul J Stevens
d7ad1be51f
Merge preakholt changes
2019-03-15 11:21:14 +01:00
Alastair Weakley
d775ef57e6
Ensure variants are deleted for page decendants
2019-01-24 16:59:44 +11:00
sewagodimo
60675203c6
fixed some comments
2019-01-10 14:51:43 +02:00
sewagodimo
ceef806301
add tests for varient exclusion use cases
2019-01-10 14:47:18 +02:00
sewagodimo
9235932f00
update exclude varient format and add variants to tests
2019-01-10 12:41:53 +02:00
sewagodimo
f054b86e07
fix flake error in conftest
2019-01-09 17:25:56 +02:00
sewagodimo
cbb56847ae
fix flake8 error
2019-01-09 17:17:51 +02:00
sewagodimo
b135e79c77
remove trailing print
2019-01-09 17:04:00 +02:00
sewagodimo
c07b280276
allow database access for tests
2019-01-09 16:55:06 +02:00
sewagodimo
94a5c6b289
tests for querysets in variant_exclude
2019-01-09 16:54:28 +02:00
Kaitlyn Crawford
d3f4d42d82
Define panel for rules to handle InlinePanel changes
2019-01-02 16:51:56 +02:00
Kaitlyn Crawford
1c74e6cfb9
Update Wagtail imports to work for 2.0
2018-12-18 13:32:02 +02:00
tm-kn
1f464adaa7
Do not generate sitemap entries for variants ( #187 )
2018-09-25 07:57:41 +02:00
tm-kn
d15f6c37d3
Return 404 if variant page is accessed directly ( #188 )
2018-09-25 07:57:06 +02:00
tm-kn
7d679d7111
Add origin country rule ( #190 )
2018-09-25 07:51:25 +02:00
tm-kn
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
Tomasz Knapik
0fd6d4d2e5
Delete variants of a page that is being deleted
2018-07-06 15:11:03 +01:00
Paul J Stevens
0bdb80f25a
improve SessionSegmentAdapter
2018-05-26 16:04:11 +02:00
Paul J Stevens
4ad097b4fa
include wagtail-2.1 in test matrix
2018-05-26 14:57:03 +02:00
Paul J Stevens
12f110d913
remove customer manager again for now
2018-05-26 14:35:53 +02:00
Paul J Stevens
4f3f9a4d40
lint
2018-05-26 12:28:01 +02:00
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