Commit Graph

16 Commits

Author SHA1 Message Date
Gergely Polonkai 83add95c8a
feat: Rename the disconnect method of each SHSEndpoint to close
The two verbs have the same meaning in this context, and this unifies the two interfaces, which helps type checking in
code using this library.
2023-11-13 06:36:51 +01:00
Gergely Polonkai 1ad7cb4e5e
test: Add tests for secret_handshake.network 2023-11-06 05:55:17 +01:00
Gergely Polonkai 1d07f9ba02
test: Fully cover crypto.py with tests 2023-11-06 05:11:54 +01:00
Gergely Polonkai 5807e64462
test: Fully cover boxstream.py with tests 2023-11-06 04:42:01 +01:00
Gergely Polonkai 9ea816f832 fix: Make inc_nonce overflow at the correct value 2023-11-03 20:21:21 +01:00
Gergely Polonkai c8b07ef913 fix: Make sure split_chunks doesn’t get 0 as chunk size 2023-11-03 20:19:41 +01:00
Gergely Polonkai 995f0dabed test: Add tests for util.inc_nonce 2023-11-03 20:13:29 +01:00
Gergely Polonkai 88516b230b test: Add tests for util.split_chunks 2023-11-03 20:01:34 +01:00
Gergely Polonkai 5820cd3e5c test: Add tests for long_to_bytes and bytes_to_long 2023-11-03 19:56:20 +01:00
Gergely Polonkai 3f7a656588
ci: Add and configure reuse, and make it happy 2023-10-31 07:35:23 +01:00
Gergely Polonkai a05a1aa182
test: Make pytest automatically recognize async tests 2023-10-31 07:35:23 +01:00
Gergely Polonkai 4996931b54
ci: Add mypy as a dev dependency and configure it 2023-10-31 07:35:22 +01:00
Gergely Polonkai 95039914ba
ci: Configure isort and make it happy 2023-10-31 07:34:57 +01:00
Gergely Polonkai d28ca167f2
ci: Lint source 2023-10-31 07:34:57 +01:00
Gergely Polonkai 53994b77a7
build: Move testing utilities to tests/helpers.py 2023-10-31 07:34:57 +01:00
Gergely Polonkai 5ad13cea75
build: Move test files to the tests/ directory
We don’t want these to install by default.
2023-10-31 07:34:56 +01:00