Skip to content

Conversation

pjhoberman
Copy link
Collaborator

Also includes creating a tests directory and moving test_app.py there

PJ Hoberman added 3 commits March 21, 2020 13:47
 - Added test_admitted_patients_chart
 - Moved projection_admits and census_df to csv files to avoid using constants from settings.py or app.py
@pjhoberman pjhoberman linked an issue Mar 21, 2020 that may be closed by this pull request
2 tasks
@jlubken
Copy link
Collaborator

jlubken commented Mar 21, 2020

Some thoughts for the future.

Usually tests is treated as a separate module so I resides next to src, not inside src. However this also means that penn_chime is an install-able module and has a setup.py file too. The separate tests module ensures that what is tested is what is actually installed in site-packages, not what a developer accidentally has available in their local directory. Furthermore, the module installation pip install . must be added to the Dockerfile and other build/deploy steps.

@pjhoberman
Copy link
Collaborator Author

Done! Moved to its own module.

Copy link
Collaborator

@quinn-dougherty quinn-dougherty left a comment

Choose a reason for hiding this comment

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

thanks PJ!

@quinn-dougherty quinn-dougherty merged commit c826250 into develop Mar 22, 2020
@quinn-dougherty quinn-dougherty deleted the 179-chart-tests branch March 22, 2020 01:45
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.

Tests around charts
3 participants