2017-01-13 17:37:10 +01:00
|
|
|
from django.contrib.auth import get_user_model
|
|
|
|
from django.test import TestCase
|
2022-07-22 03:26:41 +02:00
|
|
|
from django.urls import reverse
|
2017-01-13 17:37:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
class TicketActionsTestCase(TestCase):
|
|
|
|
fixtures = ['emailtemplate.json']
|
|
|
|
|
|
|
|
def setUp(self):
|
|
|
|
User = get_user_model()
|
|
|
|
self.user = User.objects.create(
|
|
|
|
username='User_1',
|
|
|
|
is_staff=True,
|
|
|
|
)
|
|
|
|
self.user.set_password('pass')
|
|
|
|
self.user.save()
|
|
|
|
self.client.login(username='User_1', password='pass')
|
|
|
|
|
|
|
|
def test_get_user_settings(self):
|
|
|
|
|
2022-07-12 12:34:19 +02:00
|
|
|
response = self.client.get(
|
|
|
|
reverse('helpdesk:user_settings'), follow=True)
|
2017-01-13 17:37:10 +01:00
|
|
|
self.assertContains(response, "Use the following options")
|