diff --git a/common/djangoapps/student/tests/test_views.py b/common/djangoapps/student/tests/test_views.py index d6bee4b3de..89037598a2 100644 --- a/common/djangoapps/student/tests/test_views.py +++ b/common/djangoapps/student/tests/test_views.py @@ -11,6 +11,7 @@ import pytz from django.conf import settings from django.core.urlresolvers import reverse from django.test import RequestFactory, TestCase +from django.test.utils import override_settings from edx_oauth2_provider.constants import AUTHORIZED_CLIENTS_SESSION_KEY from edx_oauth2_provider.tests.factories import ClientFactory, TrustedClientFactory from milestones.tests.utils import MilestonesTestCaseMixin @@ -28,6 +29,7 @@ from student.models import CourseEnrollment, UserProfile from student.signals import REFUND_ORDER from student.tests.factories import CourseEnrollmentFactory, UserFactory from util.milestones_helpers import get_course_milestones, remove_prerequisite_course, set_prerequisite_courses +from util.testing import UrlResetMixin from xmodule.modulestore import ModuleStoreEnum from xmodule.modulestore.tests.django_utils import SharedModuleStoreTestCase from xmodule.modulestore.tests.factories import CourseFactory @@ -398,3 +400,13 @@ class StudentDashboardTests(SharedModuleStoreTestCase, MilestonesTestCaseMixin): response = self.client.get(self.path) self.assertEqual(response.content.count('
  • '), 1) self.assertIn(' + + + diff --git a/lms/templates/text-me-the-app.html b/lms/templates/text-me-the-app.html new file mode 100644 index 0000000000..e2f7ec0234 --- /dev/null +++ b/lms/templates/text-me-the-app.html @@ -0,0 +1,20 @@ +## mako + +<%page expression_filter="h"/> +<%inherit file="main.html" /> +<%namespace name='static' file='static_content.html'/> + +<%! +from django.utils.translation import ugettext as _ +from openedx.core.djangolib.markup import HTML +%> + +<%block name="title"> + ${_("Text Me The App")} + + +
    +
    + ${HTML(fragment.body_html())} +
    +
    diff --git a/lms/urls.py b/lms/urls.py index 041d819d4a..508bf045c9 100644 --- a/lms/urls.py +++ b/lms/urls.py @@ -1075,3 +1075,9 @@ if settings.FEATURES.get('ENABLE_FINANCIAL_ASSISTANCE_FORM'): name='submit_financial_assistance_request' ) ] + +# Branch.io Text Me The App +if settings.BRANCH_IO_KEY: + urlpatterns += [ + url(r'^text-me-the-app', 'student.views.text_me_the_app', name='text_me_the_app'), + ]