Files
mayan-edms/mayan/apps/user_management/tests/test_models.py
Roberto Rosario f65f363361 Refactor user management app
Add keyword arguments.

Update view resolutions and URL parameters to the '_id' form.

Remove code from create and edit subclasses and user
the super class error checking.

Cache the view object instead of using .get_object()
every time.

Movernize tests.

Update views to comply with MERCs 5 and 6.

Split UserTestMixin into mixins for Groups and Users tests.

Add super delete and detail tests.

Remove redundant superuser filtering from views.

Add transactions to views that also commit events.

Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
2019-01-29 13:35:10 -04:00

12 lines
308 B
Python

from __future__ import unicode_literals
from mayan.apps.common.tests import BaseTestCase
from .mixins import UserTestMixin
class UserTestCase(UserTestMixin, BaseTestCase):
def test_natural_keys(self):
self._create_test_user()
self._test_database_conversion('auth', 'user_management')