Skip to content

Commit

Permalink
Update device errors in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
grydz committed Nov 3, 2020
1 parent eb72e00 commit bd212de
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/boilerplate_client/exception/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
WrongDataLengthError,
InsNotSupportedError,
ClaNotSupportedError,
AppNameTooLongError)
WrongResponseLengthError)

__all__ = [
"DeviceException",
Expand All @@ -13,5 +13,5 @@
"WrongDataLengthError",
"InsNotSupportedError",
"ClaNotSupportedError",
"AppNameTooLongError"
"WrongResponseLengthError"
]
3 changes: 1 addition & 2 deletions tests/boilerplate_client/exception/device_exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ class DeviceException(Exception): # pylint: disable=too-few-public-methods
0x6A87: WrongDataLengthError,
0x6D00: InsNotSupportedError,
0x6E00: ClaNotSupportedError,
0xB000: AppNameTooLongError

0xB000: WrongResponseLengthError
}

def __new__(cls,
Expand Down
2 changes: 1 addition & 1 deletion tests/boilerplate_client/exception/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ class ClaNotSupportedError(Exception):
pass


class AppNameTooLongError(Exception):
class WrongResponseLengthError(Exception):
pass

0 comments on commit bd212de

Please sign in to comment.