https://github.com/pytest-with-eric/pytest-overmocking-examples
Common Mocking Problems & How To Avoid Them (+ Best Practices)
https://github.com/pytest-with-eric/pytest-overmocking-examples
mocking patching pytest-mock pytest-mock-assert-called
Last synced: about 1 month ago
JSON representation
Common Mocking Problems & How To Avoid Them (+ Best Practices)
- Host: GitHub
- URL: https://github.com/pytest-with-eric/pytest-overmocking-examples
- Owner: Pytest-with-Eric
- Created: 2024-08-26T15:07:35.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-08-30T06:40:05.000Z (8 months ago)
- Last Synced: 2025-01-29T12:29:36.627Z (3 months ago)
- Topics: mocking, patching, pytest-mock, pytest-mock-assert-called
- Language: Python
- Homepage: https://pytest-with-eric.com/mocking/pytest-common-mocking-problems/
- Size: 5.86 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pytest Common Mocking Problems Example
This repo contains the sample code for the article - [Common Mocking Problems & How To Avoid Them (+ Best Practices)](https://pytest-with-eric.com/mocking/pytest-common-mocking-problems/)
# Requirements
* Python (3.12)Create a virtual environment and install the dependencies using
```shell
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
```# How To Run the Unit Tests
To run the Unit Tests, from the root of the repo run
```shell
pytest
```If you have any questions about the project please raise an Issue on GitHub.