Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rblcoder/rest-api-tests


https://github.com/rblcoder/rest-api-tests

Last synced: about 1 month ago
JSON representation

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