{"id":16842450,"url":"https://github.com/psypherpunk/hypothesis-blns","last_synced_at":"2025-10-27T23:38:52.932Z","repository":{"id":76757139,"uuid":"537839884","full_name":"PsypherPunk/hypothesis-blns","owner":"PsypherPunk","description":"Provides a Hypothesis strategy for generating values from the Big List of Naughty Strings.","archived":false,"fork":false,"pushed_at":"2022-09-17T14:56:54.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-24T12:13:57.394Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PsypherPunk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-17T14:52:19.000Z","updated_at":"2022-09-17T14:56:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"caf9b3fe-70e2-4fc2-9333-c4f6bd2334a4","html_url":"https://github.com/PsypherPunk/hypothesis-blns","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PsypherPunk%2Fhypothesis-blns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PsypherPunk%2Fhypothesis-blns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PsypherPunk%2Fhypothesis-blns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PsypherPunk%2Fhypothesis-blns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PsypherPunk","download_url":"https://codeload.github.com/PsypherPunk/hypothesis-blns/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244162455,"owners_count":20408529,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T12:46:12.070Z","updated_at":"2025-10-27T23:38:47.891Z","avatar_url":"https://github.com/PsypherPunk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `hypothesis-blns`\n\n## Why?\n\nInspired by the many talks and workshops at\n[PyCon UK 2022](https://2022.pyconuk.org/) covering\n[*Hypothesis*](https://hypothesis.readthedocs.io/).\n\n## What?\n\nHypothesis already has a\n[`text()`](https://hypothesis.readthedocs.io/en/latest/data.html#hypothesis.strategies.text)\nstrategy which will generate strings for testing. The\n[Big List of Naughty Strings](https://github.com/minimaxir/big-list-of-naughty-strings/)\nprovides a specific set of notorious strings which can be useful in testing\nassumptions around the stability of a functions handling of strings.\n\n## How?\n\n```python\n\nfrom hypothesis import given, strategies\n\nfrom hypothesis_blns.strategies import blns\n\n\ndef should_handle_strings_sensibly(input: str) -\u003e str:\n    ...\n\n\n@given(blns())\ndef test_blns(naughty: str):\n   result = should_handle_strings_sensibly(naughty) \n   ...\n\n```\n\n## Really?\n\nYeah, in hindsight throwing the whole set through a function via\n[`@pytest.mark.parametrize`](https://docs.pytest.org/en/6.2.x/parametrize.html)\nor similar would make more sense: there aren't that many values.\n\nOh well…\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsypherpunk%2Fhypothesis-blns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpsypherpunk%2Fhypothesis-blns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsypherpunk%2Fhypothesis-blns/lists"}