Commit graph

2553 commits

Author SHA1 Message Date
Karl Hobley
106b27a5a5 Added template used assertions into many tests 2014-06-02 15:23:32 +01:00
Karl Hobley
d9825e9531 Fixed missing import 2014-06-02 14:03:02 +01:00
Karl Hobley
301fd6ec3c Made WagtailTestCase a mixin and renamed to WagtailTestUtils. 2014-06-02 13:59:06 +01:00
Karl Hobley
00a06856a8 Use WagtailTestCase class in admin page views tests 2014-06-02 13:56:54 +01:00
Karl Hobley
a8ca4f14da Return user object from login method 2014-06-02 13:56:19 +01:00
Tom Dyson
13c1af3d97 Don't be coy about our test coverage 2014-06-02 13:49:10 +01:00
Karl Hobley
765f90746a Use new WagtailTestCase class for checking redirect URLs in account management tests 2014-06-02 13:45:25 +01:00
Karl Hobley
7e7910ba3b Added LOGIN_REDIRECT_URL to runtests.py settings 2014-06-02 13:41:00 +01:00
Karl Hobley
7ba7ded7c6 Added WagtailTestCase class with a couple of useful methods 2014-06-02 13:40:34 +01:00
Karl Hobley
3f9cb2da6f Made login view redirect already logged in users to dashboard.
Fixes #25
2014-06-02 13:27:39 +01:00
Karl Hobley
337f5d4146 unittest2 no longer an 'essential' requirement for developers 2014-06-02 12:42:59 +01:00
Karl Hobley
b5586102ed Cleanup Filter.process_image a bit 2014-06-02 10:52:34 +01:00
Karl Hobley
e438a6d99b Minor wagtailimages cleanup 2014-06-02 10:51:47 +01:00
Karl Hobley
351b74c94b Wand image backend: Always clone images before performing oprations on them 2014-06-02 09:52:33 +01:00
Karl Hobley
d88a5e596b Cleanup wagtailimages backends code 2014-06-02 09:36:06 +01:00
Neal Todd
9ccdcc604e Recache coverage badge 2014-05-30 17:24:37 +01:00
Tom Talbot
4887bb7cf7 Added tests for snippets edit_handlers.py 2014-05-30 17:13:07 +01:00
Neal Todd
ad488fd6a4 Merge pull request #275 from kaedroho/core-tests
Core tests
2014-05-30 17:02:05 +01:00
Neal Todd
31bc3b0ba7 Merge pull request #274 from mope/snippets-unit-tests
WIP: Unit tests for snippets views
2014-05-30 17:01:54 +01:00
Neal Todd
adee0b5cf6 Merge pull request #273 from kaedroho/admin-tests
Admin tests
2014-05-30 17:01:36 +01:00
Karl Hobley
85ef536f05 Added test for send email task 2014-05-30 16:45:27 +01:00
Karl Hobley
370442d13d Added missing template 2014-05-30 16:38:32 +01:00
Karl Hobley
488acc6afa Added test for preview for moderation 2014-05-30 16:36:56 +01:00
Karl Hobley
c410706709 Added test for content_type_use 2014-05-30 16:24:45 +01:00
Karl Hobley
73242ad02b Added test for preview on create 2014-05-30 16:19:55 +01:00
Karl Hobley
c4399636dd Added test for preview on edit 2014-05-30 16:16:57 +01:00
Karl Hobley
d057b1774f Added tests for submitting pages to moderation 2014-05-30 16:07:23 +01:00
Karl Hobley
2a92db9e5a Removed unneeded import 2014-05-30 15:55:04 +01:00
Karl Hobley
86969e9df3 Added test for replace_text command 2014-05-30 15:49:42 +01:00
Karl Hobley
e9ce499d5a Added test for move_pages command 2014-05-30 15:43:54 +01:00
Karl Hobley
9b0e56dc90 Fixed invalid numchild values in test fixtures 2014-05-30 15:43:34 +01:00
Karl Hobley
890072aa52 Added tests for fixtree command 2014-05-30 15:21:36 +01:00
Tom Talbot
4e260fb9a1 Unit tests for snippets views 2014-05-30 15:08:12 +01:00
Karl Hobley
87838f8879 Improvements to search view tests 2014-05-30 15:01:37 +01:00
Karl Hobley
046f17e64f Added error tests for approve/moderation views 2014-05-30 14:44:51 +01:00
Karl Hobley
dcca37264b Added tests for approve/reject moderation views 2014-05-30 14:40:03 +01:00
Karl Hobley
d85612dac8 Added permission checks to page views 2014-05-30 14:22:10 +01:00
Karl Hobley
526cfba682 Added tests for unpublish view 2014-05-30 14:13:43 +01:00
Karl Hobley
90a08fffe5 Added wagtailadmin account management tests
These test the following:
 - Users can login and logout
 - Logged in users are redirected to dashboard (not implemented yet #25)
 - Account section works and users can change their password
 - The password reset functionality works
2014-05-30 12:43:28 +01:00
Karl Hobley
d1bad6fadf Split up wagtailadmin tests 2014-05-30 11:18:09 +01:00
Serafeim Papastefanos
8dfd0c623f Add help_text mssage to scheduled publisihing ...
datetime fields (go_live_datetime and expiry_datetime) to help users fill
them since no datetim control is available.
2014-05-29 19:03:19 +03:00
Serafeim Papastefanos
18a4a30821 Merge remote-tracking branch 'upstream/master' into scheduled-publishing
Conflicts:
	wagtail/wagtailadmin/tests.py
	wagtail/wagtailadmin/views/pages.py
	wagtail/wagtailcore/models.py
2014-05-29 18:59:56 +03:00
Tom Talbot
24320332b0 Fix #94. Panels are now hidden on page load if they are marked as
deleted after a form validation failure.
2014-05-29 15:02:56 +01:00
Neal Todd
f25c44851e Recache version badge 2014-05-29 09:47:21 +01:00
Matt Westcott
2cbf128eb5 prepare for 0.3 release 2014-05-28 16:28:21 +01:00
Matt Westcott
3042d6ef6a set USE_TZ=True in runtests to handle fixtures correctly on sqlite 2014-05-28 16:27:53 +01:00
Matt Westcott
7bd8c16022 change deprecated mimetype args to HttpResponse to content_type 2014-05-28 15:59:58 +01:00
Matt Westcott
c7731ad020 Additional contributors / translators 2014-05-28 15:56:01 +01:00
Matt Westcott
98fed68255 Merge branch 'mope-268-fix-image-chooser-disappearing-search-box' 2014-05-28 15:45:03 +01:00
Matt Westcott
545723cd8b changelog entry for #269 2014-05-28 15:44:50 +01:00