Update requests library to 1.2.3
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
|
||||
import urlparse
|
||||
from requests.packages.oauthlib.oauth1.rfc5849 import signature
|
||||
import mock
|
||||
import threading
|
||||
import json
|
||||
|
||||
@@ -4,6 +4,7 @@ Unit tests for instructor.api methods.
|
||||
# pylint: disable=E1111
|
||||
import unittest
|
||||
import json
|
||||
import requests
|
||||
from urllib import quote
|
||||
from django.conf import settings
|
||||
from django.test import TestCase
|
||||
@@ -756,7 +757,7 @@ class TestInstructorAPIAnalyticsProxy(ModuleStoreTestCase, LoginEnrollmentTestCa
|
||||
class FakeProxyResponse(object):
|
||||
""" Fake successful requests response object. """
|
||||
def __init__(self):
|
||||
self.status_code = instructor.views.api.codes.OK
|
||||
self.status_code = requests.status_codes.codes.OK
|
||||
self.content = '{"test_content": "robot test content"}'
|
||||
|
||||
class FakeBadProxyResponse(object):
|
||||
|
||||
@@ -9,7 +9,6 @@ Many of these GETs may become PUTs in the future.
|
||||
import re
|
||||
import logging
|
||||
import requests
|
||||
from requests.status_codes import codes
|
||||
from collections import OrderedDict
|
||||
from django.conf import settings
|
||||
from django_future.csrf import ensure_csrf_cookie
|
||||
|
||||
Reference in New Issue
Block a user