docker-compose exec web-db psql -U postgres
\c web_dev
docker-compose exec web python -m pytest
docker-compose exec web python app/db.py
- Summary POST:
curl -X 'POST' 'http://localhost:8004/summaries/' -H 'accept: application/json' -H 'Content-Type: application/json' -d '{"url": "https://www.google.com"}'
$ docker-compose exec web python -m pytest
$ docker-compose exec web python -m pytest -p no:warnings
$ docker-compose exec web python -m pytest --lf
$ docker-compose exec web python -m pytest -k "summary and not test_read_summary"
$ docker-compose exec web python -m pytest -x
$ docker-compose exec web python -m pytest -x --pdb
$ docker-compose exec web python -m pytest --maxfail=2
$ docker-compose exec web python -m pytest -l
$ docker-compose exec web python -m pytest --durations=2