Skip to content

Commit

Permalink
Merge pull request #411 from mrkiwi-nz/issue_408_fix
Browse files Browse the repository at this point in the history
fix #408 : Bug in test_per_queue_staff_permission.py
  • Loading branch information
rossp committed Jun 30, 2016
2 parents 5a51d96 + 44bbcd3 commit da5a4dc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions helpdesk/tests/test_per_queue_staff_permission.py
Expand Up @@ -41,7 +41,7 @@ def setUp(self):
username='User_%d' % identifier,
is_staff=True,
)
user.set_password(identifier)
user.set_password(str(identifier))
user.save()

# The prefix 'helpdesk.' must be trimmed
Expand Down Expand Up @@ -74,7 +74,7 @@ def test_dashboard_ticket_counts(self):

# Regular users
for identifier in self.IDENTIFIERS:
self.client.login(username='User_%d' % identifier, password=identifier)
self.client.login(username='User_%d' % identifier, password=str(identifier))
response = self.client.get(reverse('helpdesk_dashboard'))
self.assertEqual(
len(response.context['unassigned_tickets']),
Expand Down Expand Up @@ -131,7 +131,7 @@ def test_ticket_list_per_queue_user_restrictions(self):
"""
# Regular users
for identifier in self.IDENTIFIERS:
self.client.login(username='User_%d' % identifier, password=identifier)
self.client.login(username='User_%d' % identifier, password=str(identifier))
response = self.client.get(reverse('helpdesk_list'))
self.assertEqual(
len(response.context['tickets']),
Expand Down Expand Up @@ -166,7 +166,7 @@ def test_ticket_reports_per_queue_user_restrictions(self):
"""
# Regular users
for identifier in self.IDENTIFIERS:
self.client.login(username='User_%d' % identifier, password=identifier)
self.client.login(username='User_%d' % identifier, password=str(identifier))
response = self.client.get(
reverse('helpdesk_run_report', kwargs={'report': 'userqueue'})
)
Expand Down

0 comments on commit da5a4dc

Please sign in to comment.