Add keyword arguments. Update URLs for uniformity. Update URL parameters to the '_id' form. Update views to remove use of .check_access(). Fix escape sequence warning in migration 0005. Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
12 lines
344 B
Python
12 lines
344 B
Python
from __future__ import unicode_literals
|
|
|
|
from django.urls import reverse
|
|
|
|
from mayan.apps.rest_api.tests import BaseAPITestCase
|
|
|
|
|
|
class EventAPITestCase(BaseAPITestCase):
|
|
def test_evet_type_list_view(self):
|
|
response = self.client.get(reverse(viewname='rest_api:event-type-list'))
|
|
self.assertEqual(response.status_code, 200)
|