Skip to content

Commit 94cc4fc

Browse files
author
David Dorothy
committed
Updated to allow for code in the package.
1 parent b52e013 commit 94cc4fc

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

src/avalara/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
@link https://github.com/avadev/AvaTax-REST-V2-Python-SDK
1717
"""
1818
from requests.auth import HTTPBasicAuth
19-
from _str_version import str_type
20-
import client_methods
19+
from ._str_version import str_type
20+
from . import client_methods
2121
import os
2222

2323

src/avalara/client_methods.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import requests
2-
from _str_version import str_type
2+
from ._str_version import str_type
33

44

55
class Mixin:

src/avalara/transaction_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
interface
2020
"""
2121
from datetime import datetime
22-
import transaction_builder_methods
22+
from . import transaction_builder_methods
2323

2424

2525
class TransactionBuilder(transaction_builder_methods.Mixin):

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Conftest is a file recognize by pytest module, allowing us to share fixture across multiple tests."""
2-
from client import AvataxClient
3-
from transaction_builder import TransactionBuilder
2+
from avalara import AvataxClient
3+
from avalara.transaction_builder import TransactionBuilder
44
import os
55
import pytest
66

tests/test_auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Test the add_credential method."""
22
import pytest
33
from requests.auth import HTTPBasicAuth
4-
from client import AvataxClient
4+
from avalara.client import AvataxClient
55

66

77
def test_username_auth(unauth_client):

tests/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""Test the client model."""
2-
from client import AvataxClient
2+
from avalara.client import AvataxClient
33

44

55
def test_client_can_be_created(unauth_client):

tests/test_trans_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""Test Transactin Builder class."""
2-
from transaction_builder import TransactionBuilder
2+
from avalara.transaction_builder import TransactionBuilder
33

44

55
def test_initialize_builder_object(auth_client):

0 commit comments

Comments
 (0)