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

[WIP] Getting started with tests #9

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

[WIP] Getting started with tests #9

wants to merge 3 commits into from

Conversation

robinkraft
Copy link
Collaborator

This PR addresses part of #7, in that it gets things set up so you can actually run and write tests inside the Docker environment! No need to use python app.py anymore, docker-compose up is just as easy, and more reliable in the long run given that you're working in the production environment.

This is a great intro to pytests, the testing framework I started using.

As you're writing tests, keep in mind how pytest finds tests as described here.

build: .
ports:
- "5000:5000"
env_file: .env
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@danhammer There's nothing in the .env file. Is there supposed to be?

eboyda pushed a commit that referenced this pull request Aug 23, 2019
Story capture

Former-commit-id: 0012a3f2c92fd951112fb4d351616e2b5de65060
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.

1 participant