Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rblcoder/rest-api-tests
https://github.com/rblcoder/rest-api-tests
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/rblcoder/rest-api-tests
- Owner: rblcoder
- License: mit
- Created: 2024-09-11T12:00:50.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-11-22T14:35:54.000Z (about 2 months ago)
- Last Synced: 2024-11-22T15:24:49.673Z (about 2 months ago)
- Language: Python
- Size: 28.3 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