Skip to content

Commit

Permalink
Merge pull request #173 from atorus-research/devel
Browse files Browse the repository at this point in the history
Devel
  • Loading branch information
elimillera committed Aug 4, 2023
2 parents b6af2b1 + ffce646 commit c0a7cb1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/.codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
codecov:
strict_yaml_branch: main
10 changes: 6 additions & 4 deletions tests/testthat/test-type.R
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ test_that("xportr_metadata: Var types coerced as expected and raise messages", {

suppressMessages({
(
df4 <- xportr_metadata(df, meta_example)
%>% xportr_type(verbose = "message")
df4 <- xportr_metadata(df, meta_example) %>%
xportr_type(verbose = "message")
) %>%
expect_message("Variable type\\(s\\) in dataframe don't match metadata: `Subj` and `Val`")
})
Expand Down Expand Up @@ -261,8 +261,10 @@ test_that("xportr_type: date variables are not converted to numeric", {
adsl_original$RFICDT <- as.Date(adsl_original$RFICDT)
adsl_original$RFICDTM <- as.POSIXct(adsl_original$RFICDTM)

expect_message(adsl_xpt2 <- adsl_original %>%
xportr_type(metadata), NA)
expect_message(
adsl_xpt2 <- adsl_original %>% xportr_type(metadata),
NA
)

attr(adsl_original, "_xportr.df_arg_") <- "adsl_original"

Expand Down

0 comments on commit c0a7cb1

Please sign in to comment.