From 9c202f70875e6b92bce1ed7505c8d8b53f189fb2 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Wed, 21 Aug 2019 03:54:31 -0400 Subject: [PATCH] Add UserTestMixin to the base test class Allows calling _create_test_users in tests. Signed-off-by: Roberto Rosario --- mayan/apps/common/tests/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mayan/apps/common/tests/base.py b/mayan/apps/common/tests/base.py index 5c08bffd57..3c352df9df 100644 --- a/mayan/apps/common/tests/base.py +++ b/mayan/apps/common/tests/base.py @@ -7,6 +7,7 @@ from django_downloadview import assert_download_response from mayan.apps.acls.tests.mixins import ACLTestCaseMixin from mayan.apps.permissions.classes import Permission from mayan.apps.smart_settings.classes import Namespace +from mayan.apps.user_management.tests.mixins import UserTestMixin from .mixins import ( ClientMethodsTestCaseMixin, ConnectionsCheckTestCaseMixin, @@ -21,7 +22,7 @@ class BaseTestCase( SilenceLoggerTestCaseMixin, ConnectionsCheckTestCaseMixin, RandomPrimaryKeyModelMonkeyPatchMixin, ACLTestCaseMixin, ModelTestCaseMixin, OpenFileCheckTestCaseMixin, - TempfileCheckTestCasekMixin, TestCase + TempfileCheckTestCasekMixin, UserTestMixin, TestCase ): """ This is the most basic test case class any test in the project should use.