-
Notifications
You must be signed in to change notification settings - Fork 0
ch: add app tests #8
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
Conversation
39cb360 to
1a6fc29
Compare
1a6fc29 to
211caf8
Compare
Mubangizi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, just a few issues to address
Dockerfile
Outdated
|
|
||
| WORKDIR /app | ||
|
|
||
| ARG FASTAPI_ENV='development' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this, because we use this docker file in staging and prod deployments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
docker-compose.yml
Outdated
| networks: | ||
| cranecloud: | ||
| external: true | ||
| external: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leave this as true
|
|
||
| test:build-testing-image ## Run tests | ||
| @ ${INFO} "Running tests" | ||
| @ docker compose -f $(DOCKER_DEV_COMPOSE_FILE) exec app-logger poetry run pytest --cov=. --cov-report=term-missing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create the external network at this point
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
|
@Mubangizi this is done |
Mubangizi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work @khalifan-kfan
What this PR does?
Adds initial testing to the application
How to run it.
Run
make test