{"id":15621634,"url":"https://github.com/jeertmans/pytest-missing-modules","last_synced_at":"2026-02-08T00:31:56.280Z","repository":{"id":254877960,"uuid":"847739078","full_name":"jeertmans/pytest-missing-modules","owner":"jeertmans","description":"Pytest plugin for faking missing modules","archived":false,"fork":false,"pushed_at":"2025-11-17T13:43:15.000Z","size":121,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-13T13:50:12.718Z","etag":null,"topics":["fake","pytest","python","testing"],"latest_commit_sha":null,"homepage":"https://pytest-missing-modules.rtfd.io/","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/jeertmans.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2024-08-26T13:04:17.000Z","updated_at":"2025-11-17T13:44:53.000Z","dependencies_parsed_at":"2024-10-22T04:05:28.179Z","dependency_job_id":null,"html_url":"https://github.com/jeertmans/pytest-missing-modules","commit_stats":null,"previous_names":["jeertmans/pytest-missing-modules"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/jeertmans/pytest-missing-modules","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeertmans%2Fpytest-missing-modules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeertmans%2Fpytest-missing-modules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeertmans%2Fpytest-missing-modules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeertmans%2Fpytest-missing-modules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeertmans","download_url":"https://codeload.github.com/jeertmans/pytest-missing-modules/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeertmans%2Fpytest-missing-modules/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29214394,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T00:10:47.190Z","status":"ssl_error","status_checked_at":"2026-02-08T00:10:43.589Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["fake","pytest","python","testing"],"created_at":"2024-10-03T09:51:21.406Z","updated_at":"2026-02-08T00:31:56.265Z","avatar_url":"https://github.com/jeertmans.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pytest-missing-modules\n\n[![Latest Release][pypi-version-badge]][pypi-version-url]\n[![Python version][pypi-python-version-badge]][pypi-version-url]\n[![Documentation][documentation-badge]][documentation-url]\n\nMinimalist Pytest plugin that adds a fixture to fake missing modules.\n\n## Who should use this plugin\n\nSometimes, your code needs to handle the possibility that\nan optional dependency can be *missing*, e.g., you develop a plotting\nlibrary supporting multiple drawing backends.\n\nThis plugin provides a convenient way to simulate one\nor multiple missing modules, raising an `ImportError` instead.\n\n## Usage\n\nFirst, install this plugin with:\n\n```bash\npip install pytest-missing-modules\n```\n\nThen, you use the Pytest fixtures like so:\n\n```python\n# this should be in one of your test files\nimport importlib\nimport my_package\n\n\ndef test_missing_numpy(missing_modules):\n    with missing_modules(\"numpy\"):\n        # Check that you can still import your package, without NumPy!\n        importlib.reload(my_package)\n```\n\nIf you need, you can also add type hints to your code:\n\n```python\nfrom pytest_missing_modules.plugin import MissingModulesContextGenerator\n\n\ndef test_missing_package(missing_modules: MissingModulesContextGenerator):\n    # your test logic goes here\n```\n\nFor more advance usage, please check the\n[documentation](https://pytest-missing-modules.readthedocs.io/).\n\n## Contributing\n\nThis project welcomes any contribution, and especially:\n\n+ bug fixes;\n+ or documentation typos.\n\n[pypi-version-badge]: https://img.shields.io/pypi/v/pytest-missing-modules?label=pytest-missing-modules\n[pypi-version-url]: https://pypi.org/project/pytest-missing-modules/\n[pypi-python-version-badge]: https://img.shields.io/pypi/pyversions/pytest-missing-modules\n[pypi-download-badge]: https://img.shields.io/pypi/dm/pytest-missing-modules\n[documentation-badge]: https://readthedocs.org/projects/pytest-missing-modules/badge/?version=latest\n[documentation-url]: https://pytest-missing-modules.readthedocs.io/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeertmans%2Fpytest-missing-modules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeertmans%2Fpytest-missing-modules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeertmans%2Fpytest-missing-modules/lists"}