diff --git a/netsuitesdk/internal/netsuite_types.py b/netsuitesdk/internal/netsuite_types.py index 5408715..78909c9 100644 --- a/netsuitesdk/internal/netsuite_types.py +++ b/netsuitesdk/internal/netsuite_types.py @@ -8,7 +8,6 @@ 'BaseRef', 'GetAllRecord', 'GetAllResult', - 'Passport', 'RecordList', 'RecordRef', 'ListOrRecordRef', diff --git a/setup.py b/setup.py index 60e6480..a0a4f94 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name='netsuitesdk', - version='3.0.0', + version='3.0.1', author='Siva Narayanan', author_email='siva@fyle.in', description='Python SDK for accessing the NetSuite SOAP webservice', diff --git a/test/internal/test_login.py b/test/internal/test_login.py deleted file mode 100644 index c096ad6..0000000 --- a/test/internal/test_login.py +++ /dev/null @@ -1,24 +0,0 @@ -import logging -import os -import time - -import pytest -from netsuitesdk.internal.client import NetSuiteClient -from netsuitesdk.internal.utils import PaginatedSearch -from netsuitesdk.internal.exceptions import NetSuiteLoginError - -logger = logging.getLogger(__name__) - -def test_login_disallowed(): - """ - Test if login method is supported. We will not use this often. - """ - NS_EMAIL = os.getenv("NS_EMAIL") - NS_PASSWORD = os.getenv("NS_PASSWORD") - NS_ROLE = os.getenv("NS_ROLE") - NS_ACCOUNT = os.getenv("NS_ACCOUNT") - NS_APPID = os.getenv("NS_APPID") - ns = NetSuiteClient(account=NS_ACCOUNT) - with pytest.raises(NetSuiteLoginError) as ex: - ns.login(email=NS_EMAIL, password=NS_PASSWORD, role=NS_ROLE, application_id=NS_APPID) - assert 'Two-Factor Authentication required' in str(ex.value.message), 'Two factor authentication required'