Merge pull request #17104 from edx/bmedx/django111_lms_unit_2_failures

Small fixes to LMS unit 2 failures in Django 1.11 tests
This commit is contained in:
Brian Mesick
2018-01-08 10:47:52 -05:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -125,7 +125,7 @@ def send_credit_notifications(username, course_key):
to_address = user.email
# send the root email message
msg = EmailMessage(subject, None, from_address, [to_address])
msg = EmailMessage(subject, '', from_address, [to_address])
msg.attach(notification_msg)
msg.send()

View File

@@ -18,6 +18,7 @@ from django.conf.urls import include, url
from django.contrib.auth.models import User
from django.http import HttpResponse
from django.test import TestCase
from django.test.utils import override_settings
from django.utils.http import urlencode
from nose.plugins.attrib import attr
from oauth2_provider import models as dot_models
@@ -76,10 +77,9 @@ urlpatterns = [
@ddt.ddt
@unittest.skipUnless(settings.FEATURES.get("ENABLE_OAUTH2_PROVIDER"), "OAuth2 not enabled")
@pytest.mark.django111_expected_failure
@override_settings(ROOT_URLCONF=__name__)
class OAuth2Tests(TestCase):
"""OAuth 2.0 authentication"""
urls = 'openedx.core.lib.api.tests.test_authentication'
def setUp(self):
super(OAuth2Tests, self).setUp()
self.dop_adapter = adapters.DOPAdapter()