django-helpdeskmig/helpdesk/tests
Daryl 0ac7183875 Add test for saving a query, fix shared checkbox issue
My browser sends 'on' when a checkbox is ticked, django ORM only
recognises '1', 'true' or 't' as valid 'True' responses.
This throws an error
ValidationError at /helpdesk/save_query/
[u"'on' value must be either True or False."]

This could be fixed with " value='1'" in the template, but testing that is harder
My fix is to add a check in the view. 2 more lines, but easier to unittest.
Core devs need to make a call as to which solution is best.

D
2016-06-30 11:36:21 +12:00
..
__init__.py tests are correctly discovered for django < 1.6 2015-11-13 15:35:36 +01:00
helpers.py fixes of python 3 test fails 2015-11-18 15:07:33 +01:00
test_navigation.py minor changes for python3 2015-11-18 10:41:02 +01:00
test_per_queue_staff_permission.py change basic features of membership into permissions 2015-12-16 22:27:05 +01:00
test_public_actions.py tests renamed for compliance 2015-06-12 15:48:38 +02:00
test_savequery.py Add test for saving a query, fix shared checkbox issue 2016-06-30 11:36:21 +12:00
test_ticket_lookup.py Ticket #403 - This code changes the behaviour of lookups for tickets and 2016-06-24 13:46:37 +12:00
test_ticket_submission.py ensure tests for ticket submission run correctly in django 1.9 (URI's no longer include the scheme and domain part of the URLs) 2015-11-16 16:08:52 +01:00