https://github.com/rblcoder/rest-api-tests
https://github.com/rblcoder/rest-api-tests
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rblcoder/rest-api-tests
- Owner: rblcoder
- License: mit
- Created: 2024-09-11T12:00:50.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-11-23T11:52:27.000Z (8 months ago)
- Last Synced: 2025-02-08T18:45:58.152Z (5 months ago)
- Language: Python
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rest-api-tests
## Run the fast api app
```
fastapi dev main.py
```## Run the tests with coverage
```
coverage run -m pytest
coverage report -m --omit="*/test*"
```## Generate html report
```
coverage html
```## Exclude tests folder
```
coverage html --omit="*/test*" -d tests/coverage
```## Access the docs by adding redoc or docs to url
## Virtual environment
virtualenv venv
source venv/bin/activate