From c8ff0897073cc329e2f364617e59cba7e5a104e6 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Fri, 21 Sep 2018 00:48:21 -0400 Subject: [PATCH] Add database conversion test to the common app. Signed-off-by: Roberto Rosario --- HISTORY.rst | 1 + mayan/apps/common/tests/test_models.py | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 mayan/apps/common/tests/test_models.py diff --git a/HISTORY.rst b/HISTORY.rst index d34f839bf0..99c2ac17af 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -9,6 +9,7 @@ * Add an user test mixin to group user testing. * Add test the user managament app for database conversion. * Add support for natural keys to the DocumentPageImageCache model. +* Add database conversion test to the common app. 3.1.1 (2018-09-18) ================== diff --git a/mayan/apps/common/tests/test_models.py b/mayan/apps/common/tests/test_models.py new file mode 100644 index 0000000000..7ef6106649 --- /dev/null +++ b/mayan/apps/common/tests/test_models.py @@ -0,0 +1,10 @@ +from __future__ import unicode_literals + +from common.tests import BaseTestCase +from user_management.tests.mixins import UserTestMixin + + +class UserLocaleProfileTestCase(UserTestMixin, BaseTestCase): + def test_natural_keys(self): + self._create_user() + self._test_database_conversion('auth', 'common')