Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature to forward CLI args to pytest #17

Merged
merged 5 commits into from
May 3, 2019

Conversation

ebreton
Copy link
Contributor

@ebreton ebreton commented Apr 27, 2019

Minor (but useful) modification to pass CLI arguments to pytest (when needed)

Default:

docker-compose exec backend-tests /tests-start.sh

Stop on first error:

docker-compose exec backend-tests /tests-start.sh -x

Stop on first error, and filter and run debugger:

docker-compose exec backend-tests /tests-start.sh -x -k my-filter --pdb

because test should be easy 🎈

@tiangolo tiangolo merged commit 1aeb320 into fastapi:master May 3, 2019
@tiangolo
Copy link
Member

tiangolo commented May 3, 2019

Awesome! Thanks 🎉 👏

@ebreton ebreton deleted the feature-forward-pytest-args branch May 20, 2019 18:09
paul121 added a commit to paul121/farmOS-aggregator that referenced this pull request Nov 27, 2019
paul121 added a commit to paul121/farmOS-aggregator that referenced this pull request Nov 27, 2019
paul121 added a commit to farmOS/farmOS-aggregator that referenced this pull request Nov 27, 2019
gusevyaroslove pushed a commit to gusevyaroslove/fastapi-template that referenced this pull request Aug 4, 2024
* removed postgres_password from alembic.ini, read it from env var instead

* ♻️ use f-strings for PostgreSQL URL

* passes given args
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants