Skip to content

Commit

Permalink
test: refactored test_OK_column_standards
Browse files Browse the repository at this point in the history
  • Loading branch information
PetterHopp committed Nov 29, 2021
1 parent 7c8ba60 commit cf0365c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/testthat/test_OK_column_standards.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
library(NVIdb)
library(OKplan)
library(testthat)
context("OK_column_standards")

test_that("Standard colwidths in Excel for OK-selections", {
# Generate data frame with column names for table that should be exported to Excel
Expand Down Expand Up @@ -34,7 +33,7 @@ test_that("Standard colwidths in Excel for OK-selections", {

# Compare Add fylke, current fylkenr and current fylke with correct result
expect_identical(standardize_columns(data = df,
dbsource = "sau_brucella_slakteri",
dbsource = "ok_blodprover_slakteri",
standards = OK_column_standards,
property = "colwidths_Excel"),
correct_result)
Expand Down Expand Up @@ -74,7 +73,7 @@ test_that("Standard collabels for OK selections", {

# Compare Add fylke, current fylkenr and current fylke with correct result
expect_identical(standardize_columns(data = df,
dbsource = "sau_brucella_slakteri",
dbsource = "ok_blodprover_slakteri",
standards = OK_column_standards,
property = "collabels"),
correct_result)
Expand Down

0 comments on commit cf0365c

Please sign in to comment.