Skip to content
Snippets Groups Projects
Commit ca00ccfb authored by Stu Young's avatar Stu Young Committed by Michael Youngstrom
Browse files

incr-282 (#20577)

* run python modernize

* run isort
parent 7d8f779f
No related branches found
No related tags found
No related merge requests found
"""
Computes the data to display on the Instructor Dashboard
"""
from __future__ import absolute_import
import json
from django.db.models import Count
from django.utils.translation import ugettext as _
from opaque_keys.edx.locator import BlockUsageLocator
from six import text_type
......
......@@ -2,12 +2,15 @@
Tests for class dashboard (Metrics tab in instructor dashboard)
"""
from __future__ import absolute_import
import json
from django.urls import reverse
from django.test.client import RequestFactory
from django.urls import reverse
from mock import patch
from six import text_type
from six.moves import range
from capa.tests.response_xml_factory import StringResponseXMLFactory
from class_dashboard.dashboard_data import (
......@@ -60,7 +63,7 @@ class TestGetProblemGradeDistribution(SharedModuleStoreTestCase):
display_name=u"test unit omega \u03a9",
)
cls.items = []
for i in xrange(USER_COUNT - 1):
for i in range(USER_COUNT - 1):
item = ItemFactory.create(
parent_location=cls.unit.location,
category="problem",
......@@ -80,7 +83,7 @@ class TestGetProblemGradeDistribution(SharedModuleStoreTestCase):
self.attempts = 3
self.users = [
UserFactory.create(username="metric" + str(__))
for __ in xrange(USER_COUNT)
for __ in range(USER_COUNT)
]
for user in self.users:
......
"""
Tests for class dashboard (Metrics tab in instructor dashboard)
"""
from __future__ import absolute_import
import json
from django.test.client import RequestFactory
......
"""
Class Dashboard API endpoint urls.
"""
from __future__ import absolute_import
from django.conf import settings
from django.conf.urls import url
import class_dashboard.views
import class_dashboard.dashboard_data
import class_dashboard.views
COURSE_ID_PATTERN = settings.COURSE_ID_PATTERN
......
......@@ -2,6 +2,8 @@
Handles requests for data, returning a json
"""
from __future__ import absolute_import
import json
import logging
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment