-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
General refactor/restructure of the project (#361)
* General refactor/restructure of the project * Fix ruff issues for TCP testing * Remove `list()` from TCP tests, simplify more array expands (#362) * Fix remainder of ruff lints (#365) * Fix remainder of ruff lints * Revert TCP error messages General communication messages for read and write are caught and raised during `wait_closed()`. * Attempt to fix missing coverage on 108->exit * Ignore `PGH003` for type skip * use `type: ignore[unreachable]` instead * Fix coverage by moving `self._close_session=False` out of `if` Somehow `codecov` is not able to deduce that `_close_session` is `False` if the `if` was not entered. * Improve and reuse `close()` function * Ignore type-less subclass with `misc` instead of `unreachable` ignore The type is still reachable, `mypy` simply doesn't have type info hence considers it as the `Any` type which shouldn't be subclassed: tests/test_tcp_models.py:206: error: Unused "type: ignore" comment tests/test_tcp_models.py:206: error: Class cannot subclass "TestCase" (has type "Any") [misc] tests/test_tcp_models.py:206: note: Error code "misc" not covered by "type: ignore" comment * Make content_type check less strict again * Move test to TCP section --------- Co-authored-by: Marijn Suijten <marijns95@gmail.com>
- Loading branch information
1 parent
2e1f0ff
commit 355f809
Showing
25 changed files
with
986 additions
and
1,432 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
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
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 was deleted.
Oops, something went wrong.
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
Oops, something went wrong.