Skip to content

Commit cf1e1d8

Browse files
authored
Try re-recording cassettes once again (#374)
* Simplify test setup * New fixture for `extract_colmap` * New fixture for `survey_questions` * New fixtures for `metadata` * New fixtures for `fetch_survey` * New fixtures for `fetch_description` * New fixture for `column_map` * Use withr for env vars * Format some tests * Back to using these cassettes * Oops new survey ID * Don't test this function about writing env vars * Switch to native pipe * Try mocking `check_credentials()` * Add secrets as R env vars * Add secrets as env vars to test coverage as well * Regenerate these fixtures yet again * Back to just skipping on CI for this
1 parent 01d3f07 commit cf1e1d8

35 files changed

+2661
-3202
lines changed

.github/workflows/R-CMD-check.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
env:
2828
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
2929
R_KEEP_PKG_SOURCE: yes
30+
QUALTRICS_BASE_URL: ${{ secrets.QUALTRICS_BASE_URL }}
31+
QUALTRICS_API_KEY: ${{ secrets.QUALTRICS_API_KEY }}
3032

3133
steps:
3234
- uses: actions/checkout@v4

.github/workflows/test-coverage.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
runs-on: ubuntu-latest
1414
env:
1515
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
16+
QUALTRICS_BASE_URL: ${{ secrets.QUALTRICS_BASE_URL }}
17+
QUALTRICS_API_KEY: ${{ secrets.QUALTRICS_API_KEY }}
1618

1719
steps:
1820
- uses: actions/checkout@v4

R/checks.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ checkarg_fetch_id_data <-
717717
rlang::abort(
718718
c("Error in `.data`:",
719719
"`fetch_id()` needs a dataframe from `all_surveys()` with columns `id` & `name`",
720-
'Example usage: `all_surveys() %>% fetch_id("That Survey I Need")`')
720+
'Example usage: `all_surveys() |> fetch_id("That Survey I Need")`')
721721
)
722722
}
723723
}

tests/fixtures/colmap_fetch.yml

Lines changed: 0 additions & 154 deletions
This file was deleted.

tests/fixtures/column_map.yml

Lines changed: 94 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/fixtures/extract_colmap.yml

Lines changed: 498 additions & 111 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/fixtures/fetch_description.yml

Lines changed: 162 additions & 373 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/fixtures/fetch_description_legacy.yml

Lines changed: 76 additions & 335 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/fixtures/fetch_one_qid.yml

Lines changed: 328 additions & 144 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/fixtures/fetch_survey.yml

Lines changed: 433 additions & 133 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)