Skip to content
This repository was archived by the owner on May 9, 2024. It is now read-only.

Commit e03eee4

Browse files
committed
lint fixes
1 parent d1dd1ab commit e03eee4

File tree

10 files changed

+20
-14
lines changed

10 files changed

+20
-14
lines changed

tests/test_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def test_init():
2525
assert req.locale == data['locale']
2626
assert req.version == data['version']
2727
assert req.installed_app_id == \
28-
data['configurationData']['installedAppId']
28+
data['configurationData']['installedAppId']
2929
assert req.phase == LIFECYCLE_CONFIG_INIT
3030
assert req.page_id == ''
3131
assert req.previous_page_id == ''

tests/test_event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
""""Tests for the event module."""
22

3-
from pysmartapp.event import EventRequest, Event
4-
from pysmartapp.consts import LIFECYCLE_EVENT, EVENT_TYPE_DEVICE
3+
from pysmartapp.consts import EVENT_TYPE_DEVICE, LIFECYCLE_EVENT
4+
from pysmartapp.event import Event, EventRequest
55

66
from .utilities import get_fixture
77

tests/test_install.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
""""Tests for the install module."""
22

3-
from pysmartapp.install import InstallRequest
43
from pysmartapp.consts import LIFECYCLE_INSTALL
4+
from pysmartapp.install import InstallRequest
55

66
from .utilities import get_fixture
77

@@ -24,7 +24,8 @@ def test_init():
2424
assert req.version == data['version']
2525
assert req.installed_app_id == 'd692699d-e7a6-400d-a0b7-d5be96e7a564'
2626
assert req.location_id == 'e675a3d9-2499-406c-86dc-8a492a886494'
27-
assert req.installed_app_config == data['installData']['installedApp']['config']
27+
assert req.installed_app_config ==\
28+
data['installData']['installedApp']['config']
2829
assert req.settings == data['settings']
2930
assert req.auth_token == '580aff1f-f0f1-44e0-94d4-e68bf9c2e768'
3031
assert req.refresh_token == 'ad58374e-9d6a-4457-8488-a05aa8337ab3'

tests/test_oauthcallback.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
""""Tests for the oauthcallback module."""
22

3-
from pysmartapp.oauthcallback import OAuthCallbackRequest
43
from pysmartapp.consts import LIFECYCLE_OAUTH_CALLBACK
4+
from pysmartapp.oauthcallback import OAuthCallbackRequest
55

66
from .utilities import get_fixture
77

tests/test_ping.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
""""Tests for the ping module."""
22

3-
from pysmartapp.ping import PingRequest
43
from pysmartapp.consts import LIFECYCLE_PING
4+
from pysmartapp.ping import PingRequest
55

66
from .utilities import get_fixture
77

tests/test_request.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
import pytest
44

5-
from pysmartapp.request import Response, EmptyDataResponse, Request
5+
from pysmartapp.request import EmptyDataResponse, Request, Response
6+
67
from .utilities import get_fixture
78

9+
810
class TestResponse:
911
"""Tests for the Response class."""
1012

tests/test_smartapp.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
"""Tests for the SmartApp file."""
22

33
import pytest
4-
from pysmartapp.smartapp import SmartApp
4+
55
from pysmartapp.errors import SignatureVerificationError
6+
from pysmartapp.smartapp import SmartApp
7+
68
from .utilities import get_fixture
79

810

tests/test_uninstall.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
""""Tests for the uninstall module."""
22

3-
from pysmartapp.uninstall import UninstallRequest
43
from pysmartapp.consts import LIFECYCLE_UNINSTALL
4+
from pysmartapp.uninstall import UninstallRequest
55

66
from .utilities import get_fixture
77

@@ -24,5 +24,6 @@ def test_init():
2424
assert req.version == data['version']
2525
assert req.installed_app_id == 'd692699d-e7a6-400d-a0b7-d5be96e7a564'
2626
assert req.location_id == 'e675a3d9-2499-406c-86dc-8a492a886494'
27-
assert req.installed_app_config == data['uninstallData']['installedApp']['config']
27+
assert req.installed_app_config == \
28+
data['uninstallData']['installedApp']['config']
2829
assert req.settings == data['settings']

tests/test_update.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
""""Tests for the update module."""
22

3-
from pysmartapp.update import UpdateRequest
43
from pysmartapp.consts import LIFECYCLE_UPDATE
4+
from pysmartapp.update import UpdateRequest
55

66
from .utilities import get_fixture
77

@@ -24,7 +24,8 @@ def test_init():
2424
assert req.version == data['version']
2525
assert req.installed_app_id == 'd692699d-e7a6-400d-a0b7-d5be96e7a564'
2626
assert req.location_id == 'e675a3d9-2499-406c-86dc-8a492a886494'
27-
assert req.installed_app_config == data['updateData']['installedApp']['config']
27+
assert req.installed_app_config == \
28+
data['updateData']['installedApp']['config']
2829
assert req.settings == data['settings']
2930
assert req.auth_token == '4ebd8d9f-53b0-483f-a989-4bde30ca83c0'
3031
assert req.refresh_token == '6e3bbf5f-b68d-4250-bbc9-f7151016a77f'

tests/test_utilities.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ def test_create_request_invalid():
1212
# Act/Assert
1313
with pytest.raises(ValueError):
1414
utilities.create_request(data)
15-

0 commit comments

Comments
 (0)