Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
Merge pull request #2997 from diox/update-curling
Browse files Browse the repository at this point in the history
Update curling to 0.4.0, getting rid of oauth2 (bug 846349)
  • Loading branch information
diox committed Mar 25, 2015
2 parents 86c12a2 + 4198dd6 commit 25dc5d8
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion mkt/developers/api_payments.py
Expand Up @@ -2,7 +2,6 @@
from django.core.urlresolvers import reverse

import commonware
from curling.lib import HttpClientError, HttpServerError
from rest_framework import status
from rest_framework.mixins import (CreateModelMixin, DestroyModelMixin,
ListModelMixin, RetrieveModelMixin,
Expand All @@ -14,6 +13,7 @@
Serializer,
ValidationError)
from rest_framework.viewsets import GenericViewSet
from slumber.exceptions import HttpClientError, HttpServerError
from tower import ugettext as _

import mkt
Expand Down
2 changes: 1 addition & 1 deletion mkt/developers/forms_payments.py
Expand Up @@ -9,7 +9,7 @@

import commonware
import happyforms
from curling.lib import HttpClientError
from slumber.exceptions import HttpClientError
from tower import ugettext as _, ugettext_lazy as _lazy

import mkt
Expand Down
2 changes: 1 addition & 1 deletion mkt/developers/tests/test_api_payments.py
Expand Up @@ -5,10 +5,10 @@
from django.test.client import RequestFactory
from django.test.utils import override_settings

from curling.lib import HttpClientError, HttpServerError
from mock import Mock, patch
from nose.tools import eq_, ok_
from rest_framework.request import Request
from slumber.exceptions import HttpClientError, HttpServerError

import mkt
from mkt.api.tests.test_oauth import RestOAuth
Expand Down
2 changes: 1 addition & 1 deletion mkt/developers/tests/test_forms_payments.py
@@ -1,9 +1,9 @@
from django.test.client import RequestFactory

import mock
from curling.lib import HttpClientError
from nose.tools import eq_, ok_
from pyquery import PyQuery as pq
from slumber.exceptions import HttpClientError

import mkt
import mkt.site.tests
Expand Down
2 changes: 1 addition & 1 deletion mkt/developers/tests/test_views_payments.py
Expand Up @@ -6,10 +6,10 @@
from django.core.urlresolvers import reverse

import mock
from curling.lib import HttpClientError
from mock import ANY
from nose.tools import eq_, ok_
from pyquery import PyQuery as pq
from slumber.exceptions import HttpClientError
from waffle.models import Switch

import mkt
Expand Down
2 changes: 1 addition & 1 deletion mkt/developers/views_payments.py
Expand Up @@ -12,7 +12,7 @@
import commonware
import jinja2
import waffle
from curling.lib import HttpClientError
from slumber.exceptions import HttpClientError
from tower import ugettext as _
from waffle.decorators import waffle_switch

Expand Down
4 changes: 2 additions & 2 deletions mkt/lookup/tests/test_views.py
Expand Up @@ -10,7 +10,6 @@

import mock
from babel import numbers
from curling.lib import HttpClientError
from nose.tools import eq_, ok_
from pyquery import PyQuery as pq
from slumber import exceptions
Expand Down Expand Up @@ -283,7 +282,8 @@ def test_bango_portal_redirect(self, api):
def test_bango_portal_redirect_api_error(self, api):
message = 'Something went wrong.'
error = {'__all__': [message]}
api.bango.login.post.side_effect = HttpClientError(content=error)
api.bango.login.post.side_effect = exceptions.HttpClientError(
content=error)
res = self.client.get(self.portal_url, follow=True)
eq_(res.redirect_chain, [('http://testserver/lookup/', 302)])
ok_(message in [msg.message for msg in res.context['messages']][0])
Expand Down
6 changes: 2 additions & 4 deletions requirements/prod.txt
Expand Up @@ -18,7 +18,7 @@ chardet==2.3.0
commonware==0.4.3
# cssutils is required by app-validator
cssutils==0.9.7b3
curling==0.3.12
curling==0.4
# defusedxml is required by djangorestframework
defusedxml==0.4.1
dennis==0.4.2
Expand Down Expand Up @@ -72,9 +72,7 @@ m2secret==0.1.1
ndg-httpsclient==0.3.3
newrelic==2.20.1.18
nose==1.3.4
# oauth2 is required by curling
oauth2==1.5.211
oauthlib==0.6.2
oauthlib==0.7.2
# ordereddict is required by kombu
ordereddict==1.1
# polib is required by dennis
Expand Down

0 comments on commit 25dc5d8

Please sign in to comment.