Files
edx-platform/lms/djangoapps/commerce/tests/test_views.py
2021-02-01 18:56:15 +05:00

16 lines
447 B
Python

""" Tests for commerce views. """
from common.djangoapps.student.tests.factories import UserFactory
class UserMixin(object):
""" Mixin for tests involving users. """
def setUp(self):
super(UserMixin, self).setUp() # lint-amnesty, pylint: disable=super-with-arguments
self.user = UserFactory()
def _login(self):
""" Log into LMS. """
self.client.login(username=self.user.username, password='test')