Recent commits to derivepassphrase.git (e0810c5d6b0cf4f2549c8354bfe020c35b211c41) https://git.schokokeks.org/derivepassphrase.git/tree/e0810c5d6b0cf4f2549c8354bfe020c35b211c41 Recent commits feed provided by GitList. Merge topic branch 'documentation-fixes' into master * t/documentation-fixes: (24 commits) Move commands' `--help` tests out of transition group Make CLI testing helper functions, data and strategies public Add hypothesis-based service name type tests for the "vault" module Signal failed assumptions instead of passing tests in the "vault" module Document hypothesis examples for "vault" tests the proper way Rearrange hypothesis tests in the `vault` module Rearrange hypothesis tests in the `ssh_agent` module Add more hypothesis tests for the `ssh_agent` module Fix improper `re` escape pattern in `ssh_agent` tests Add hypothesis tests for the `exporter` module Add hypothesis tests for the `sequin` module Remove use of the monkeypatch test fixture in favor of the context manager Prefilter some hypothesis candidate lists before sampling Add a "flaky" hypothesis profile to find flaky tests Fix test output on PyPy 3.9 due to differing error message texts Move repetitive hypothesis strategy definition to separate functions Explicitly test JS truthiness of NaN Allow test key suitability check to be dependent on the connected agent Make multiple private test attributes and functions public Add hypothesis inventory to documentation ... https://git.schokokeks.org/derivepassphrase.git/commit/e0810c5d6b0cf4f2549c8354bfe020c35b211c41 software@the13thletter.info (Marco Ricci) Tue, 28 Jan 2025 14:30:21 +0100 e0810c5d6b0cf4f2549c8354bfe020c35b211c41 Move commands' `--help` tests out of transition group These tests aren't specific to the v1.0 transition, and if we still want to keep them in some way or another, they should probably outlast v1.0. https://git.schokokeks.org/derivepassphrase.git/commit/5ff8445cd241e69f31093a7848b305f902e2739f software@the13thletter.info (Marco Ricci) Tue, 28 Jan 2025 11:03:57 +0100 5ff8445cd241e69f31093a7848b305f902e2739f Make CLI testing helper functions, data and strategies public Make these helpers public in the sense that they get picked up by the API documentation generator. https://git.schokokeks.org/derivepassphrase.git/commit/f3dd59c5f9cb04aad5a979485deea2b2ec30d1fa software@the13thletter.info (Marco Ricci) Tue, 28 Jan 2025 00:15:01 +0100 f3dd59c5f9cb04aad5a979485deea2b2ec30d1fa Add hypothesis-based service name type tests for the "vault" module Check that equivalent service name strings, byte strings and byte arrays all derive the same passphrases. https://git.schokokeks.org/derivepassphrase.git/commit/b0038660e3efed0577ad5c08523d69a70a13bfeb software@the13thletter.info (Marco Ricci) Mon, 27 Jan 2025 00:35:36 +0100 b0038660e3efed0577ad5c08523d69a70a13bfeb Signal failed assumptions instead of passing tests in the "vault" module One hypothesis-enabled test function of the "vault" module tests that the constructor accepts a given set of settings. While the generator attempts to yield only satisfiable settings, there are certain settings that cannot derive a passphrase for one service name, but can derive one for other names. In these cases, the specific generated characters and occurrence limitations together disallow all otherwise eligible candidates for the next character. Tests with such configurations should actually be skipped, but hypothesis-based tests need different skip handling than normal pytest-based tests. Previously we would "fake" skipping by silently returning early, which suggests that the test actually *passed*. Now, we use `hypothesis.assume` to signal to hypothesis to generate a different datum instead. https://git.schokokeks.org/derivepassphrase.git/commit/3450dc6b4e2ca1c160fb5341e24ba49f6a3de18c software@the13thletter.info (Marco Ricci) Sun, 26 Jan 2025 23:42:36 +0100 3450dc6b4e2ca1c160fb5341e24ba49f6a3de18c Document hypothesis examples for "vault" tests the proper way Use `hypothesis.example(...).via(...)` instead of source code comments. https://git.schokokeks.org/derivepassphrase.git/commit/fe0c9ed2905b4cecf92062921c3035b0a29ddf29 software@the13thletter.info (Marco Ricci) Sun, 26 Jan 2025 23:40:15 +0100 fe0c9ed2905b4cecf92062921c3035b0a29ddf29 Rearrange hypothesis tests in the `vault` module Just like in 9db6c6591de054433ae98d59f7930364e7d03286 for the `ssh_agent` tests, arrange the `vault` hypothesis tests so that they lie next to the respective non-hypothesis test, if any. Also rename and/or renumber them as necessary. https://git.schokokeks.org/derivepassphrase.git/commit/e3b9a55dcbd793977d8e3373bd24892f04199b2c software@the13thletter.info (Marco Ricci) Sun, 26 Jan 2025 20:10:35 +0100 e3b9a55dcbd793977d8e3373bd24892f04199b2c Rearrange hypothesis tests in the `ssh_agent` module Arrange the hypothesis tests so that they lie next to the respective non-hypothesis test, if any, instead of bundling them all in the same testing class. By doing this, related tests are closer to each other, if possible. Use the hypothesis mark instead of the testing class if filtering is required. Additionally, since the helper functions `as_ssh_string`, `canonicalize1` and `canonicalize2` now are visible in and assigned to a broader context, give them proper docstrings. https://git.schokokeks.org/derivepassphrase.git/commit/1291fcbc59d4a4ea9e8c60fb5502f51854b09861 software@the13thletter.info (Marco Ricci) Sun, 26 Jan 2025 16:34:47 +0100 1291fcbc59d4a4ea9e8c60fb5502f51854b09861 Add more hypothesis tests for the `ssh_agent` module Add more hypothesis tests for SSH string encoding and decoding, based on David R. MacIver's articles. Also document the explicit examples in the proper way. https://git.schokokeks.org/derivepassphrase.git/commit/7c5ca4b3edb7babde9c8dd1a5e6eebd5cbe52638 software@the13thletter.info (Marco Ricci) Sun, 26 Jan 2025 16:21:45 +0100 7c5ca4b3edb7babde9c8dd1a5e6eebd5cbe52638 Fix improper `re` escape pattern in `ssh_agent` tests https://git.schokokeks.org/derivepassphrase.git/commit/d2fc4003bd5b81a3a6063007c5e42a5aa1bfc884 software@the13thletter.info (Marco Ricci) Sun, 26 Jan 2025 16:17:09 +0100 d2fc4003bd5b81a3a6063007c5e42a5aa1bfc884