INCR-457: Make compatible with Python 3.x (#21011)
This commit is contained in:
@@ -2,18 +2,20 @@
|
||||
Tests for course_info
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import ddt
|
||||
from django.conf import settings
|
||||
from milestones.tests.utils import MilestonesTestCaseMixin
|
||||
from six.moves import range
|
||||
|
||||
from mobile_api.testutils import MobileAPITestCase, MobileAuthTestMixin, MobileCourseAccessTestMixin
|
||||
from mobile_api.utils import API_V1, API_V05
|
||||
from xmodule.html_module import CourseInfoModule
|
||||
from xmodule.modulestore import ModuleStoreEnum
|
||||
from xmodule.modulestore.django import modulestore
|
||||
from xmodule.modulestore.xml_importer import import_course_from_xml
|
||||
|
||||
from mobile_api.testutils import MobileAPITestCase, MobileAuthTestMixin, MobileCourseAccessTestMixin
|
||||
from mobile_api.utils import API_V05, API_V1
|
||||
|
||||
|
||||
@ddt.ddt
|
||||
class TestUpdates(MobileAPITestCase, MobileAuthTestMixin, MobileCourseAccessTestMixin, MilestonesTestCaseMixin):
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
URLs for course_info API
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from django.conf import settings
|
||||
from django.conf.urls import url
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
Views for course info API
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from rest_framework import generics
|
||||
from rest_framework.response import Response
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
"""
|
||||
Middleware for Mobile APIs
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
from datetime import datetime
|
||||
|
||||
from django.conf import settings
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
"""
|
||||
ConfigurationModel for the mobile_api djangoapp.
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
from config_models.models import ConfigurationModel
|
||||
from django.db import models
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
URLs for mobile API
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from django.conf.urls import include, url
|
||||
|
||||
from .users.views import my_user_info
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
"""
|
||||
Common utility methods for Mobile APIs.
|
||||
"""
|
||||
from six.moves import map
|
||||
|
||||
API_V05 = 'v0.5'
|
||||
API_V1 = 'v1'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user