https://git.schokokeks.org/derivepassphrase.git/tree/fe0c9ed2905b4cecf92062921c3035b0a29ddf29 Recent commits to derivepassphrase.git (fe0c9ed2905b4cecf92062921c3035b0a29ddf29) 2025-01-26T23:40:15+01:00 tag:gitlist.org,2012:commit/fe0c9ed2905b4cecf92062921c3035b0a29ddf29 Document hypothesis examples for "vault" tests the proper way 2025-01-26T23:40:15+01:00 Marco Ricci software@the13thletter.info <pre>Use `hypothesis.example(...).via(...)` instead of source code comments. &lt;/pre&gt; tag:gitlist.org,2012:commit/e3b9a55dcbd793977d8e3373bd24892f04199b2c Rearrange hypothesis tests in the `vault` module 2025-01-26T20:10:35+01:00 Marco Ricci software@the13thletter.info <pre>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. &lt;/pre&gt; tag:gitlist.org,2012:commit/1291fcbc59d4a4ea9e8c60fb5502f51854b09861 Rearrange hypothesis tests in the `ssh_agent` module 2025-01-26T16:34:47+01:00 Marco Ricci software@the13thletter.info <pre>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. &lt;/pre&gt; tag:gitlist.org,2012:commit/7c5ca4b3edb7babde9c8dd1a5e6eebd5cbe52638 Add more hypothesis tests for the `ssh_agent` module 2025-01-26T16:21:45+01:00 Marco Ricci software@the13thletter.info <pre>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. &lt;/pre&gt; tag:gitlist.org,2012:commit/d2fc4003bd5b81a3a6063007c5e42a5aa1bfc884 Fix improper `re` escape pattern in `ssh_agent` tests 2025-01-26T16:17:09+01:00 Marco Ricci software@the13thletter.info <pre>&lt;/pre&gt; tag:gitlist.org,2012:commit/6367e1a267c8eb3ab1696a02be42ff929d5ea7ce Add hypothesis tests for the `exporter` module 2025-01-25T23:29:34+01:00 Marco Ricci software@the13thletter.info <pre>Add hypothesis tests for vault key discovery and for registring vault configuration data export handlers, each via their own parameter object and corresponding hypothesis strategy, and convert all existing explicit parametrized tests to hypothesis examples. &lt;/pre&gt; tag:gitlist.org,2012:commit/f797b3c6e22947c9df1f79bf156934338b876d10 Add hypothesis tests for the `sequin` module 2025-01-25T23:28:10+01:00 Marco Ricci software@the13thletter.info <pre>Add hypothesis tests for big endian number parsing, the sequin constructor, the generation and the bit shifting steps, each via their own parameter object and corresponding hypothesis strategy, and convert all existing explicit parametrized tests to hypothesis examples. (The strategy may be trivial, however.) Besides the existing helper function `bitseq`, we add a new `bits` helper function, and add hypothesis tests for both of these helper functions as well. &lt;/pre&gt; tag:gitlist.org,2012:commit/06c392fa7488cc1e250c165b3fe9a279357af758 Remove use of the monkeypatch test fixture in favor of the context manager 2025-01-25T22:15:53+01:00 Marco Ricci software@the13thletter.info <pre>The `pytest.MonkeyPatch.context` context manager is just as easy to use, and does not interfere with hypothesis. &lt;/pre&gt; tag:gitlist.org,2012:commit/c52f39217b29541f5196ba8d2dfddc82b2ac65e8 Prefilter some hypothesis candidate lists before sampling 2025-01-25T22:10:20+01:00 Marco Ricci software@the13thletter.info <pre>Filtering the candidate lists *after* sampling requires redraws, all of which are completely avoidable. &lt;/pre&gt; tag:gitlist.org,2012:commit/0ab7722de56c48e87bab02555e53ef65754968fc Add a "flaky" hypothesis profile to find flaky tests 2025-01-25T20:59:05+01:00 Marco Ricci software@the13thletter.info <pre>Also add coverage-compatible settings to one hypothesis test that was still missing them, which was identified as flaky under this new profile. &lt;/pre&gt;