{"id":15885982,"url":"https://github.com/pmeier/pytest-import","last_synced_at":"2025-04-02T15:45:43.903Z","repository":{"id":114967175,"uuid":"408971850","full_name":"pmeier/pytest-import","owner":"pmeier","description":"Proof of concept for importing test packages when working with pytest's --import-mode=importlib","archived":false,"fork":false,"pushed_at":"2021-09-21T21:07:19.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-08T06:42:25.210Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pmeier.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-09-21T20:56:40.000Z","updated_at":"2021-09-21T21:07:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"0ad3cfaf-4acb-4774-b329-0b959bb5bbfa","html_url":"https://github.com/pmeier/pytest-import","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"6a6526ac4018b115c89b84d0267db6675b6174a1"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmeier%2Fpytest-import","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmeier%2Fpytest-import/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmeier%2Fpytest-import/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmeier%2Fpytest-import/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pmeier","download_url":"https://codeload.github.com/pmeier/pytest-import/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246847053,"owners_count":20843438,"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-06T05:21:30.468Z","updated_at":"2025-04-02T15:45:43.865Z","avatar_url":"https://github.com/pmeier.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `pytest-import`\n\nThis is a proof-of-concept for https://github.com/pytest-dev/pytest/issues/8964#issuecomment-924289234.\n\nThe idea is to import test packages on the requested test paths if `pytest` runs with \n`--import-mode=importlib`.\n\n## Demo\n\n```shell\n$ python setup.py develop\n$ pytest --import-mode=importlib tests/\n```\n\nAlthough `tests/test_foo.py` features an import from `tests/utils.py`, we can \n`pytest --import-mode=importlib tests/` without error.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmeier%2Fpytest-import","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpmeier%2Fpytest-import","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmeier%2Fpytest-import/lists"}