Skip to content

Remove Session as parent class of AuthClient #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions intuitlib/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from __future__ import absolute_import

import json
import requests
from future.moves.urllib.parse import urlencode

from intuitlib.utils import (
Expand All @@ -26,7 +25,7 @@
send_request,
)

class AuthClient(requests.Session):
class AuthClient:
"""Handles OAuth 2.0 and OpenID Connect flows to get access to User Info API, Accounting APIs and Payments APIs
"""

Expand All @@ -44,8 +43,6 @@ def __init__(self, client_id, client_secret, redirect_uri, environment, state_to
:param realm_id: QBO Realm/Company ID, defaults to None
"""

super(AuthClient, self).__init__()

self.client_id = client_id
self.client_secret = client_secret
self.redirect_uri = redirect_uri
Expand Down
2 changes: 1 addition & 1 deletion tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
from intuitlib.exceptions import AuthClientError
from tests.helper import MockResponse

class TestClient():
class TestClient:

auth_client = AuthClient('clientId','secret','https://www.mydemoapp.com/oauth-redirect','sandbox')

Expand Down