Commit efec188b by Will Daly

Fix unit tests

parent 3c1aab80
...@@ -5,11 +5,12 @@ import base64 ...@@ -5,11 +5,12 @@ import base64
import json import json
import re import re
from django.conf import settings
from django.core.urlresolvers import reverse from django.core.urlresolvers import reverse
from django.core import mail from django.core import mail
from django.test import TestCase from django.test import TestCase
from django.test.utils import override_settings from django.test.utils import override_settings
from unittest import SkipTest from unittest import SkipTest, skipUnless
import ddt import ddt
from pytz import UTC from pytz import UTC
from django_countries.countries import COUNTRIES from django_countries.countries import COUNTRIES
...@@ -545,6 +546,7 @@ class PreferenceUsersListViewTest(UserApiTestCase): ...@@ -545,6 +546,7 @@ class PreferenceUsersListViewTest(UserApiTestCase):
@ddt.ddt @ddt.ddt
@skipUnless(settings.ROOT_URLCONF == 'lms.urls', 'Test only valid in lms')
class LoginSessionViewTest(ApiTestCase): class LoginSessionViewTest(ApiTestCase):
"""Tests for the login end-points of the user API. """ """Tests for the login end-points of the user API. """
...@@ -701,6 +703,7 @@ class LoginSessionViewTest(ApiTestCase): ...@@ -701,6 +703,7 @@ class LoginSessionViewTest(ApiTestCase):
@ddt.ddt @ddt.ddt
@skipUnless(settings.ROOT_URLCONF == 'lms.urls', 'Test only valid in lms')
class RegistrationViewTest(ApiTestCase): class RegistrationViewTest(ApiTestCase):
"""Tests for the registration end-points of the User API. """ """Tests for the registration end-points of the User API. """
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment