Skip to content

move raw-data/ tests inside of raw-data/ script #34

@zkamvar

Description

@zkamvar

in #33, a test suite was added to test the validity of the raw data. This is a good thing! The icky thing is the fact that the package tests were never really set up for this situation, which leads to things like getwd() sneaking into the code.

Given that these tests are designed to test the data generation and will only ever run locally, would it make more sense to move them inside of the script?

library(testthat)
library(dplyr)

## Data fetching and generation

test_that("data looks good", {
  expect_is(...)
})

test_that("data smells good", {
  expect_equal(...)
})

## Data writing and stuff.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions