django-helpdesk/helpdesk/tests
Jonathan Barratt 0610a6645d Fix QueueMembership bug revealed by django.test's DiscoverRunner
If HELPDESK_ENABLE_PER_QUEUE_STAFF_MEMBERSHIP was True but a user had
no QueueMembership entries, then restricting queue access generated
RelatedObjectDoesNotExist exceptions.

 - Ask for forgiveness whenever we try to limit a queryset by the
queuemembership related object set.

 - Since tests can now be run with the project's settings active,
rather than only with quicktest.py's settings, restore the initial
HELPDESK_ENABLE_PER_QUEUE_MEMBERSHIP value after having tested the
related functionality.
2015-11-16 18:45:27 +07:00
..
__init__.py tests are correctly discovered for django < 1.6 2015-11-13 15:35:36 +01:00
helpers.py fix reload_urlconf test helper so it supports a third party urlconf 2015-11-06 15:22:44 +01:00
test_navigation.py tests renamed for compliance 2015-06-12 15:48:38 +02:00
test_per_queue_staff_membership.py Fix QueueMembership bug revealed by django.test's DiscoverRunner 2015-11-16 18:45:27 +07:00
test_public_actions.py tests renamed for compliance 2015-06-12 15:48:38 +02:00
test_ticket_submission.py tests renamed for compliance 2015-06-12 15:48:38 +02:00