INCR-457: Make compatible with Python 3.x (#21011)

This commit is contained in:
Amit
2019-07-10 17:22:47 +03:00
committed by Feanil Patel
parent adc91f786f
commit f31a894900
7 changed files with 17 additions and 3 deletions

View File

@@ -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):

View File

@@ -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

View File

@@ -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

View File

@@ -1,6 +1,8 @@
"""
Middleware for Mobile APIs
"""
from __future__ import absolute_import
from datetime import datetime
from django.conf import settings

View File

@@ -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

View File

@@ -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

View File

@@ -1,6 +1,8 @@
"""
Common utility methods for Mobile APIs.
"""
from six.moves import map
API_V05 = 'v0.5'
API_V1 = 'v1'