{"id":22121046,"url":"https://github.com/pytest-with-eric/pytest-environment-variables-example","last_synced_at":"2026-02-08T17:05:13.622Z","repository":{"id":133377348,"uuid":"566057532","full_name":"Pytest-with-Eric/pytest-environment-variables-example","owner":"Pytest-with-Eric","description":"3 Simple Ways To Define Environment Variables In Pytest","archived":false,"fork":false,"pushed_at":"2024-06-04T11:48:48.000Z","size":9,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-20T20:04:49.196Z","etag":null,"topics":["pytest-env","pytest-environment-variables","python-dotenv"],"latest_commit_sha":null,"homepage":"https://pytest-with-eric.com/pytest-best-practices/pytest-environment-variables/","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/Pytest-with-Eric.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":"2022-11-14T22:02:41.000Z","updated_at":"2024-08-26T15:15:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"d82c14da-11c4-482a-97ae-5f6ab3fd6fb5","html_url":"https://github.com/Pytest-with-Eric/pytest-environment-variables-example","commit_stats":null,"previous_names":["pytest-with-eric/pytest-environment-variables-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Pytest-with-Eric/pytest-environment-variables-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pytest-with-Eric%2Fpytest-environment-variables-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pytest-with-Eric%2Fpytest-environment-variables-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pytest-with-Eric%2Fpytest-environment-variables-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pytest-with-Eric%2Fpytest-environment-variables-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pytest-with-Eric","download_url":"https://codeload.github.com/Pytest-with-Eric/pytest-environment-variables-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pytest-with-Eric%2Fpytest-environment-variables-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29237159,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T14:18:14.570Z","status":"ssl_error","status_checked_at":"2026-02-08T14:18:14.071Z","response_time":57,"last_error":"SSL_read: 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":["pytest-env","pytest-environment-variables","python-dotenv"],"created_at":"2024-12-01T14:33:11.223Z","updated_at":"2026-02-08T17:05:13.607Z","avatar_url":"https://github.com/Pytest-with-Eric.png","language":"Python","readme":"# Pytest Environment Variables Example\n\nThis repo contains the sample code for the article - [3 Simple Ways To Define Environment Variables In Pytest](https://pytest-with-eric.com/pytest-best-practices/pytest-environment-variables/)\n\n\n# Requirements\n* Python (3.12)\n\nPlease install the dependencies via the `requirements.txt` file using \n```commandline\npip install -r requirements.txt\n```\nIf you don't have Pip installed please follow instructions online on how to do it.\n\n# How To Run the Unit Tests\nTo run the Unit Tests, from the root of the repo run\n```commandline\npytest\n```\n\n**Note - Please run one test at a time to see the output as `pytest.ini` will override environment variables defined in `.env` files.**\n\nIf you have any questions about the project please raise an Issue on GitHub. ","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpytest-with-eric%2Fpytest-environment-variables-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpytest-with-eric%2Fpytest-environment-variables-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpytest-with-eric%2Fpytest-environment-variables-example/lists"}