-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes tests; adds tests to cover all of plotting, scenario_inputs and…
… data_loading
- Loading branch information
Fox Sebastian (BNSSG CCG)
authored and
Fox Sebastian (BNSSG CCG)
committed
Jul 23, 2024
1 parent
9faaed1
commit 6498ad6
Showing
9 changed files
with
443 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
...that/_snaps/fct_plotting/acute-to-trust-proportions-pie-chart-is-consistent.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions
36
tests/testthat/_snaps/fct_plotting/ggplot-hold-message.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# update_prediction_and_plot_r | ||
|
||
Code | ||
update_predictions_and_plot_r(prediction_custom_scenario = "testing", | ||
model_outputs = load_model_object("wf"), scenario_name = "incorrect_name", | ||
performance_metrics = "Proportion of attended GP appointments (over 4 weeks wait time)", | ||
r = list(ics_cd = ics_code, ics_data = all_ics_data, scenario_data = scenario_data)) | ||
Condition | ||
Error in `match.arg()`: | ||
! 'arg' should be one of "last_known", "percent", "linear", "custom" | ||
|
||
--- | ||
|
||
Code | ||
custom_test <- update_predictions_and_plot_r(prediction_custom_scenario = "testing", | ||
model_outputs = load_model_object("wf"), scenario_name = scenario, | ||
performance_metrics = "Proportion of attended GP appointments (over 4 weeks wait time)", | ||
r = list(ics_cd = ics_code, ics_data = all_ics_data, scenario_data = scenario_data, | ||
predictions = predictions)) | ||
Condition | ||
Error in `session$sendModal()`: | ||
! attempt to apply non-function | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.