https://github.com/pytest-with-eric/pytest-fixture-scope-example
What Are Pytest Fixture Scopes? (How To Choose The Best Scope For Your Test)
https://github.com/pytest-with-eric/pytest-fixture-scope-example
fixture-scope pytest pytest-fixture-scope pytest-fixtures
Last synced: 4 months ago
JSON representation
What Are Pytest Fixture Scopes? (How To Choose The Best Scope For Your Test)
- Host: GitHub
- URL: https://github.com/pytest-with-eric/pytest-fixture-scope-example
- Owner: Pytest-with-Eric
- Created: 2023-07-26T15:49:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-18T05:22:21.000Z (over 2 years ago)
- Last Synced: 2024-12-01T14:38:41.974Z (about 1 year ago)
- Topics: fixture-scope, pytest, pytest-fixture-scope, pytest-fixtures
- Language: Python
- Homepage: https://pytest-with-eric.com/pytest-advanced/pytest-fixture-scope/
- Size: 8.79 KB
- Stars: 3
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pytest Fixture Scope Example
This repo contains the sample code for the article - [What Are Pytest Fixture Scopes? (How To Choose The Best Scope For Your Test)](https://pytest-with-eric.com/pytest-advanced/pytest-fixture-scope/)
This project is a simple example of what are Pytest Fixtures scopes and how to use them.
# Requirements
* Python 3.11.4
Please install the dependencies via the `requirements.txt` file using
```commandline
pip install -r requirements.txt
```
If you don't have Pip installed please follow instructions online on how to do it.
# How To Run the Unit Tests
To run the Unit Tests, from the root of the repo run
```commandline
pytest -v -s
```
If you have any questions about the project please raise an Issue on GitHub.