Skip to content
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

chore: remove passport complex type #147

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
1 change: 0 additions & 1 deletion netsuitesdk/internal/netsuite_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
'BaseRef',
'GetAllRecord',
'GetAllResult',
'Passport',
'RecordList',
'RecordRef',
'ListOrRecordRef',
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name='netsuitesdk',
version='3.0.0',
version='3.0.1',
author='Siva Narayanan',
author_email='[email protected]',
description='Python SDK for accessing the NetSuite SOAP webservice',
Expand Down
42 changes: 21 additions & 21 deletions test/internal/test_login.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
import logging
import os
import time
# 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
# import pytest
# from netsuitesdk.internal.client import NetSuiteClient
# from netsuitesdk.internal.utils import PaginatedSearch
# from netsuitesdk.internal.exceptions import NetSuiteLoginError

logger = logging.getLogger(__name__)
# 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'
# 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'
Loading