mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-26 01:43:10 +01:00
Fix namespaces in test
This commit is contained in:
parent
dc25164304
commit
adf2b16c2c
@ -89,7 +89,7 @@ class PerQueueStaffMembershipTestCase(TestCase):
|
|||||||
|
|
||||||
# Superuser
|
# Superuser
|
||||||
self.client.login(username='superuser', password='superuser')
|
self.client.login(username='superuser', password='superuser')
|
||||||
response = self.client.get(reverse('helpdesk_dashboard'))
|
response = self.client.get(reverse('helpdesk:dashboard'))
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
len(response.context['unassigned_tickets']),
|
len(response.context['unassigned_tickets']),
|
||||||
3,
|
3,
|
||||||
@ -112,7 +112,7 @@ class PerQueueStaffMembershipTestCase(TestCase):
|
|||||||
# Regular users
|
# Regular users
|
||||||
for identifier in self.IDENTIFIERS:
|
for identifier in self.IDENTIFIERS:
|
||||||
self.client.login(username='User_%d' % identifier, password=str(identifier))
|
self.client.login(username='User_%d' % identifier, password=str(identifier))
|
||||||
response = self.client.get(reverse('helpdesk_report_index'))
|
response = self.client.get(reverse('helpdesk:report_index'))
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
len(response.context['dash_tickets']),
|
len(response.context['dash_tickets']),
|
||||||
1,
|
1,
|
||||||
|
@ -947,7 +947,7 @@ def ticket_list(request):
|
|||||||
|
|
||||||
return render(request, 'helpdesk/ticket_list.html', dict(
|
return render(request, 'helpdesk/ticket_list.html', dict(
|
||||||
context,
|
context,
|
||||||
tickets=tickets_qs,
|
tickets=ticket_qs,
|
||||||
default_tickets_per_page=request.user.usersettings.settings.get('tickets_per_page') or 25,
|
default_tickets_per_page=request.user.usersettings.settings.get('tickets_per_page') or 25,
|
||||||
user_choices=User.objects.filter(is_active=True, is_staff=True),
|
user_choices=User.objects.filter(is_active=True, is_staff=True),
|
||||||
queue_choices=user_queues,
|
queue_choices=user_queues,
|
||||||
|
Loading…
Reference in New Issue
Block a user