{"id":23161789,"url":"https://github.com/mvousden/pytest-lets-explore","last_synced_at":"2025-04-04T19:38:20.018Z","repository":{"id":128453767,"uuid":"112008544","full_name":"mvousden/pytest-lets-explore","owner":"mvousden","description":"A foray into the features of pytest.","archived":false,"fork":false,"pushed_at":"2017-11-26T19:50:44.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-10T04:31:56.825Z","etag":null,"topics":["lets-explore","mock","mocking","parallel","pytest","pytest-mock","pytest-plugin","pytest-xdist","python","python3","python36"],"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/mvousden.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":"2017-11-25T14:11:30.000Z","updated_at":"2017-11-25T14:37:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"5669f586-da96-4949-8901-0c89b505bcf0","html_url":"https://github.com/mvousden/pytest-lets-explore","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvousden%2Fpytest-lets-explore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvousden%2Fpytest-lets-explore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvousden%2Fpytest-lets-explore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvousden%2Fpytest-lets-explore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mvousden","download_url":"https://codeload.github.com/mvousden/pytest-lets-explore/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247238625,"owners_count":20906474,"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":["lets-explore","mock","mocking","parallel","pytest","pytest-mock","pytest-plugin","pytest-xdist","python","python3","python36"],"created_at":"2024-12-17T23:15:25.734Z","updated_at":"2025-04-04T19:38:20.011Z","avatar_url":"https://github.com/mvousden.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"About\n---\n\nWelcome to \"let's explore pytest\", which includes several pytest\nexamples. pytest is a testing framework that can be used to test Python code,\namongst other things, and lives at www.pytest.org. Python 3 is used exclusively\nin this repository, though pytest can test Python 2 software.\n\nThese examples assume you are familiar with your shell or commandline, and are\nable to set up your environment appropriately.\n\nEnvironment\n---\n\nYou will need (the versions we are using are in parentheses):\n\n - Python 3 (3.6.2)\n\n - pytest (3.2.1)\n\n - pytest-mock (1.6.0)\n\n - pytest-xdist (1.17.1)\n\nThe conda environment file `conda_environment.yml` is provided, which all\nexamples are designed to use.\n\nTable of contents\n---\n\nEach example contains multiple `pytest` Python scripts.\n\n 1. *Introductory examples*\n    - Introduces pytest.\n    - pytest reports failing tests, and has informative output.\n    - pytest searches for tests automatically.\n\n 2. *Fixtures, parameterisation, and parallelisation* (requires example 1)\n    - Fixtures (decorated with `@pytest.fixture()`) are blocks of functionality\n      that allow tests to be written in a modular way.\n    - Fixtures are run when the test is run, and their output is passed to the\n      test.\n    - Fixtures can be used to parameterise tests, reducing code\n      duplication. Each test is run individually of the others.\n    - Parameterised tests run well in parallel (but be careful when testing\n      software that itself runs in parallel!)\n\n 3. *Testing software in isolation using mocking* (requires example 2)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvousden%2Fpytest-lets-explore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmvousden%2Fpytest-lets-explore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvousden%2Fpytest-lets-explore/lists"}