-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding tests for udsclient. Will ensure code is compatible with pytho…
…n 3.8 and greater, and that works fine
- Loading branch information
Showing
10 changed files
with
231 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[run] | ||
dynamic_context = test_function | ||
omit = | ||
*/shibokensupport/* | ||
*/signature_bootstrap.py | ||
branch = True | ||
|
||
[report] | ||
skip_empty = True | ||
exclude_lines = | ||
pragma: no cover | ||
raise NotImplementedError | ||
if typing.TYPE_CHECKING: | ||
|
||
[html] | ||
show_contexts = True | ||
title = UDS Client Test Coverage Report |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,22 @@ | ||
class UDSException(Exception): | ||
pass | ||
|
||
|
||
class UDSMessageException(Exception): | ||
class MessageException(UDSException): | ||
pass | ||
|
||
class UDSArgumentException(Exception): | ||
|
||
class ArgumentException(UDSException): | ||
pass | ||
|
||
|
||
class RetryException(UDSException): | ||
pass | ||
|
||
|
||
class InvalidVersion(UDSException): | ||
downloadUrl: str | ||
|
||
def __init__(self, downloadUrl: str) -> None: | ||
super().__init__(downloadUrl) | ||
self.downloadUrl = downloadUrl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.