Skip to content

Commit

Permalink
Merge pull request #521 from RMI-PACTA/fix-test-for-new-demo-data
Browse files Browse the repository at this point in the history
use full demo data in test to avoid problem using new demo data
  • Loading branch information
cjyetman authored Nov 7, 2023
2 parents b4b87e8 + daf9054 commit 1583870
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/plot_techmix.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

Code
invisible(plot_techmix(mydata))
Message <rlang_message>
Message
The `technology_share` values are plotted for extreme years.
Do you want to plot different years? E.g. filter mydata with:`subset(mydata, year %in% c(2020, 2030))`.

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test-market_share.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ test_that("outputs like r2dii.analysis::target_market_share()", {
sort_df <- function(data) data[sort(names(data))]

# The style `namespace::fun()` highlights this is an integration test
lbk <- r2dii.data::loanbook_demo[1:10, ]
abcd <- r2dii.data::abcd_demo[795:800, ]
lbk <- r2dii.data::loanbook_demo
abcd <- r2dii.data::abcd_demo
matched <- r2dii.match::prioritize(r2dii.match::match_name(lbk, abcd))

scenario <- r2dii.data::scenario_demo_2020
Expand Down

0 comments on commit 1583870

Please sign in to comment.