Conversation
The initial version of this test file had only some of the reference dates of the whole time span
More to come
for more information, see https://pre-commit.ci
Need to do a bit more testing I think
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
These changes should only be merged into main at the same time as the config generator library gets these changse merged
|
Yea, I think something lower than 1.0 would be good. I don't remember exactly what worked well in the runs when I did it. @kgostic do you remember if there was a particular threshold you liked? |
|
To start, I resolved the merge conflicts. In the 'main' branch we have 0.94 as the proportion for active facilities threshold so that's what I set to here. |
|
Thank you for your contribution @micahwiesner67 🚀! Your pkgdown-site is ready for download 👉 here 👈! |
Co-authored-by: Zachary Susswein <46581799+zsusswein@users.noreply.github.com>
for more information, see https://pre-commit.ci
|
@zsusswein In regard to the 4 tests you mentioned.
|
That explanation makes sense. My request here is add tests for the expected behavior, especially for the key production use-cases.
And the above is a little concerning because we have a change to the core API here. I believe you when you tell me that this runs in both cases and there's a test somewhere, but I think we need a test to cover explicitly this behavior in each of its permutations. |
|
Documenting our conversation yesterday for thoroughness. Zach raised concerns over testing in these scenarios. The main distinction to make is that if the facility_active_proportion is not passed through the config that is totally fine as there is a default value (0.94) set.
In our meeting yesterday we agreed it wasn't necessary to test the handling of the config as long as we had a respective case in read_data. As there is a default for facility_active_proportion this field is essentially always passed in. To cover these cases, I've added some tests in the tests/testthat/test-read_data.R script.
|
@natemcintosh re-opening that PR here.
Notes:
make test-batch JOB=test_name DATA_API=v2Some additional changes for continuity:
"low_case_count_thresholds": {
"COVID-19": 10,
"Influenza": 10,
"RSV": 5
},