{"id":22121090,"url":"https://github.com/pytest-with-eric/pytest-setup-teardown-example","last_synced_at":"2025-03-24T06:44:44.147Z","repository":{"id":195602092,"uuid":"693234270","full_name":"Pytest-with-Eric/pytest-setup-teardown-example","owner":"Pytest-with-Eric","description":"What is Setup and Teardown in Pytest? (Importance of a Clean Test Environment)","archived":false,"fork":false,"pushed_at":"2023-10-11T05:16:53.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T12:30:04.774Z","etag":null,"topics":["pytest-fixture-scope","pytest-fixtures","setup-teardown","teardown"],"latest_commit_sha":null,"homepage":"https://pytest-with-eric.com/pytest-best-practices/pytest-setup-teardown/","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":"2023-09-18T16:03:27.000Z","updated_at":"2024-06-09T08:50:51.000Z","dependencies_parsed_at":"2023-10-04T22:36:48.764Z","dependency_job_id":"b4ad6f94-76c5-4720-a670-76e79d2623c9","html_url":"https://github.com/Pytest-with-Eric/pytest-setup-teardown-example","commit_stats":null,"previous_names":["pytest-with-eric/pytest-setup-teardown-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pytest-with-Eric%2Fpytest-setup-teardown-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pytest-with-Eric%2Fpytest-setup-teardown-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pytest-with-Eric%2Fpytest-setup-teardown-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pytest-with-Eric%2Fpytest-setup-teardown-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-setup-teardown-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245224199,"owners_count":20580363,"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":["pytest-fixture-scope","pytest-fixtures","setup-teardown","teardown"],"created_at":"2024-12-01T14:33:43.452Z","updated_at":"2025-03-24T06:44:44.121Z","avatar_url":"https://github.com/Pytest-with-Eric.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pytest Setup Teardown Example\n\nThis repo contains the sample code for the article - [What is Setup and Teardown in Pytest? (Importance of a Clean Test Environment)](https://pytest-with-eric.com/pytest-best-practices/pytest-setup-teardown/)\n\nThis project is a simple example of how to use the `setup` and `teardown` methods in Pytest.\n\n## Requirements\n\n* Python 3.11.4\n\nPlease install the dependencies via the `requirements.txt` file using\n\n```\npip install -r requirements.txt\n```\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\n\nTo run the Unit Tests, from the root of the repo run\n\n```\npytest -v -s\n```\n\nIf you have any questions about the project please raise an Issue on GitHub.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpytest-with-eric%2Fpytest-setup-teardown-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpytest-with-eric%2Fpytest-setup-teardown-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpytest-with-eric%2Fpytest-setup-teardown-example/lists"}