Skip to content

Commit

Permalink
removed library(dataaimsr) from tests/testthat/test-* files; close #18
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarneche committed Oct 10, 2022
1 parent 87c6f60 commit ca3166c
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 18 deletions.
2 changes: 0 additions & 2 deletions tests/testthat/test-aims_citation.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
library(dataaimsr)

with_mock_dir("Citation", {
test_that("Correct structure", {
# regular monitoring data
Expand Down
2 changes: 0 additions & 2 deletions tests/testthat/test-aims_data.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
library(dataaimsr)

with_mock_dir("Correct-structure-aimsdata", {
test_that("Correct structure", {
# default to 1000 returns next_page link
Expand Down
2 changes: 0 additions & 2 deletions tests/testthat/test-aims_expose_attributes.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
library(dataaimsr)

test_that("Correct structure", {
expect_is(aims_expose_attributes("weather"), "list")
expect_is(aims_expose_attributes("temp_loggers"), "list")
Expand Down
2 changes: 0 additions & 2 deletions tests/testthat/test-aims_filter_values.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
library(dataaimsr)

with_mock_dir("Correct-structure-filtervalues", {
test_that("Correct structure", {
expect_is(aims_filter_values("weather", filter_name = "site"), "data.frame")
Expand Down
2 changes: 0 additions & 2 deletions tests/testthat/test-aims_metadata.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
library(dataaimsr)

with_mock_dir("Correct-structure-metadata", {
test_that("Correct structure metadata", {
# regular monitoring data
Expand Down
2 changes: 0 additions & 2 deletions tests/testthat/test-aims_parameters.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
library(dataaimsr)

with_mock_dir("Correct-structure-parameters", {
test_that("Correct structure", {
# regular monitoring data
Expand Down
2 changes: 0 additions & 2 deletions tests/testthat/test-aimsdf-methods.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
library(dataaimsr)

with_mock_dir("Correct-structure-methods", {
test_that("Correct structure", {
# regular monitoring data
Expand Down
2 changes: 0 additions & 2 deletions tests/testthat/test-helpers.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
library(dataaimsr)

weather_doi <- data_doi("weather")
ssts_doi <- data_doi("temp_loggers")
base_end_pt <- make_base_end_pt(weather_doi, aims_version = NA)
Expand Down
2 changes: 0 additions & 2 deletions tests/testthat/test-page_data.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
library(dataaimsr)

weather_doi <- data_doi("weather")
ssts_doi <- data_doi("temp_loggers")

Expand Down

0 comments on commit ca3166c

Please sign in to comment.