Skip to content

Commit 2d9fc34

Browse files
authored
fix: remove subpackage structure for response (#152)
* fix: remove subpackage structure for response * chore: fix typo in README
1 parent 506ec48 commit 2d9fc34

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ auth_url = client.get_auth_url(scopes)
5757
- The user will login, and then accept or deny the permissions in your `scopes`
5858

5959
- If the user is already connected to your application, they will not be shown the accept or deny dialog. However
60-
the application can force this dialog to be shown with `client.get_auth_url(options={"force_prompt"=True})`
60+
the application can force this dialog to be shown with `client.get_auth_url(options={"force_prompt":True})`
6161

6262
- If the user accepts, they will be redirected to your `redirect_uri`. The query field `code` will contain an
6363
authorization code. This is _very_ important, so save it for later.

smartcar/auth_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import smartcar.config as config
88
import smartcar.helpers as helpers
9-
import smartcar.response.v2 as v2
9+
import smartcar.v2_response as v2
1010

1111

1212
class AuthClient(object):

smartcar/smartcar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
import smartcar.config as config
1010
import smartcar.helpers as helpers
11-
import smartcar.response.v2 as v2
12-
import smartcar.response.v3 as v3
11+
import smartcar.v2_response as v2
12+
import smartcar.v3_response as v3
1313

1414
API_VERSION = "2.0"
1515

smartcar/vehicle.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
import smartcar.config as config
55
import smartcar.helpers as helpers
66
import smartcar.smartcar
7-
import smartcar.response.v2 as v2
8-
import smartcar.response.v3 as v3
7+
import smartcar.v2_response as v2
8+
import smartcar.v3_response as v3
99
import smartcar.exception as sce
1010

1111

tests/e2e/test_smartcar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
get_connections,
1010
delete_connections,
1111
)
12-
import smartcar.response.v2 as v2
12+
import smartcar.v2_response as v2
1313
import tests.auth_helpers as ah
1414

1515

tests/e2e/test_vehicle.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import smartcar.response.v2 as v2
2-
import smartcar.response.v3 as v3
1+
import smartcar.v2_response as v2
2+
import smartcar.v3_response as v3
33
from smartcar.exception import SmartcarException
44
import tests.auth_helpers as ah
55

tests/unit/test_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import smartcar.response.v2 as v2
1+
import smartcar.v2_response as v2
22
import requests.structures as rs
33

44

0 commit comments

Comments
 (0)