Files
edx-platform/lms/djangoapps/commerce/tests/test_views.py
2020-05-28 09:46:12 -04:00

16 lines
375 B
Python

""" Tests for commerce views. """
from student.tests.factories import UserFactory
class UserMixin(object):
""" Mixin for tests involving users. """
def setUp(self):
super(UserMixin, self).setUp()
self.user = UserFactory()
def _login(self):
""" Log into LMS. """
self.client.login(username=self.user.username, password='test')