mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2024-11-07 08:44:04 +01:00
Fix failing tests
This commit is contained in:
parent
93bb43bf1d
commit
437d5b81c4
@ -197,10 +197,10 @@ class TicketActionsTestCase(TestCase):
|
||||
|
||||
# generate the URL text
|
||||
result = num_to_link('this is ticket#%s' % ticket_id)
|
||||
self.assertEqual(result, "this is ticket <a href='/helpdesk/tickets/%s/' class='ticket_link_status ticket_link_status_Open'>#%s</a>" % (ticket_id, ticket_id))
|
||||
self.assertEqual(result, "this is ticket <a href='/tickets/%s/' class='ticket_link_status ticket_link_status_Open'>#%s</a>" % (ticket_id, ticket_id))
|
||||
|
||||
result2 = num_to_link('whoa another ticket is here #%s huh' % ticket_id)
|
||||
self.assertEqual(result2, "whoa another ticket is here <a href='/helpdesk/tickets/%s/' class='ticket_link_status ticket_link_status_Open'>#%s</a> huh" % (ticket_id, ticket_id))
|
||||
self.assertEqual(result2, "whoa another ticket is here <a href='/tickets/%s/' class='ticket_link_status ticket_link_status_Open'>#%s</a> huh" % (ticket_id, ticket_id))
|
||||
|
||||
def test_create_ticket_getform(self):
|
||||
self.loginUser()
|
||||
|
@ -144,8 +144,8 @@ urlpatterns += [
|
||||
]
|
||||
|
||||
urlpatterns += [
|
||||
path(
|
||||
"rss/user/<str:user_name>/",
|
||||
re_path(
|
||||
r"^rss/user/(?P<user_name>[a-zA-Z0-9\.]+)/",
|
||||
helpdesk_staff_member_required(feeds.OpenTicketsByUser()),
|
||||
name="rss_user",
|
||||
),
|
||||
|
@ -98,7 +98,7 @@ class QuickDjangoTest(object):
|
||||
MIDDLEWARE=self.MIDDLEWARE,
|
||||
ROOT_URLCONF='helpdesk.tests.urls',
|
||||
STATIC_URL='/static/',
|
||||
LOGIN_URL='/helpdesk/login/',
|
||||
LOGIN_URL='/login/',
|
||||
TEMPLATES=self.TEMPLATES,
|
||||
SITE_ID=1,
|
||||
SECRET_KEY='wowdonotusethisfakesecuritykeyyouneedarealsecure1',
|
||||
|
Loading…
Reference in New Issue
Block a user