Recent commits to derivepassphrase.git (06c392fa7488cc1e250c165b3fe9a279357af758) https://git.schokokeks.org/derivepassphrase.git/tree/06c392fa7488cc1e250c165b3fe9a279357af758 Recent commits feed provided by GitList. Remove use of the monkeypatch test fixture in favor of the context manager The `pytest.MonkeyPatch.context` context manager is just as easy to use, and does not interfere with hypothesis. https://git.schokokeks.org/derivepassphrase.git/commit/06c392fa7488cc1e250c165b3fe9a279357af758 software@the13thletter.info (Marco Ricci) Sat, 25 Jan 2025 22:15:53 +0100 06c392fa7488cc1e250c165b3fe9a279357af758 Prefilter some hypothesis candidate lists before sampling Filtering the candidate lists *after* sampling requires redraws, all of which are completely avoidable. https://git.schokokeks.org/derivepassphrase.git/commit/c52f39217b29541f5196ba8d2dfddc82b2ac65e8 software@the13thletter.info (Marco Ricci) Sat, 25 Jan 2025 22:10:20 +0100 c52f39217b29541f5196ba8d2dfddc82b2ac65e8 Add a "flaky" hypothesis profile to find flaky tests Also add coverage-compatible settings to one hypothesis test that was still missing them, which was identified as flaky under this new profile. https://git.schokokeks.org/derivepassphrase.git/commit/0ab7722de56c48e87bab02555e53ef65754968fc software@the13thletter.info (Marco Ricci) Sat, 25 Jan 2025 20:59:05 +0100 0ab7722de56c48e87bab02555e53ef65754968fc Fix test output on PyPy 3.9 due to differing error message texts https://git.schokokeks.org/derivepassphrase.git/commit/6cf32bb8285e85c6fbe77108554b625f74d5fbb3 software@the13thletter.info (Marco Ricci) Sat, 25 Jan 2025 20:55:43 +0100 6cf32bb8285e85c6fbe77108554b625f74d5fbb3 Move repetitive hypothesis strategy definition to separate functions Apart from higher resistance to typos, this also communicates the intent of the strategy more clearly. https://git.schokokeks.org/derivepassphrase.git/commit/fbc810ad671ea26deb675bda169347c22b06b1e8 software@the13thletter.info (Marco Ricci) Sat, 25 Jan 2025 00:16:59 +0100 fbc810ad671ea26deb675bda169347c22b06b1e8 Explicitly test JS truthiness of NaN https://git.schokokeks.org/derivepassphrase.git/commit/b2213a26f18b3f7700cbb710847345c87330daea software@the13thletter.info (Marco Ricci) Sat, 25 Jan 2025 00:13:39 +0100 b2213a26f18b3f7700cbb710847345c87330daea Allow test key suitability check to be dependent on the connected agent https://git.schokokeks.org/derivepassphrase.git/commit/bbe5bdfa8ab24d38444b0d44a74ae3aba6b257b9 software@the13thletter.info (Marco Ricci) Sat, 25 Jan 2025 00:10:44 +0100 bbe5bdfa8ab24d38444b0d44a74ae3aba6b257b9 Make multiple private test attributes and functions public This includes the JavaScript sources of the broken storeroom sample vault configurations, and all remaining functions in the `tests.conftest` module. https://git.schokokeks.org/derivepassphrase.git/commit/2f34e23b58f642c6ab07a05d5cf9e3ad2c7cd66b software@the13thletter.info (Marco Ricci) Fri, 24 Jan 2025 23:20:17 +0100 2f34e23b58f642c6ab07a05d5cf9e3ad2c7cd66b Add hypothesis inventory to documentation Now hypothesis decorators and strategies will be highlighted and linked in the API documentation. https://git.schokokeks.org/derivepassphrase.git/commit/fe2f7d14ddba40a21bb6ed969cbbc76907ec5f02 software@the13thletter.info (Marco Ricci) Fri, 24 Jan 2025 23:04:28 +0100 fe2f7d14ddba40a21bb6ed969cbbc76907ec5f02 Add docstrings for all test functions and test helper functions These docstrings aim to provide intent and context to the test function. https://git.schokokeks.org/derivepassphrase.git/commit/717c79abdaaa7dcda93cc2a2b6a70cddaf688061 software@the13thletter.info (Marco Ricci) Fri, 24 Jan 2025 23:03:43 +0100 717c79abdaaa7dcda93cc2a2b6a70cddaf688061