From 119c1bde76daf6e1d6311cf798c957037334cc30 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Fri, 12 Jul 2019 04:39:18 -0400 Subject: [PATCH] Add user test mixin to base test class Allow tests to create test users. 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.