Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add vcr testing framework and example unittests for get_public_timeline #36

Merged
merged 1 commit into from
Nov 8, 2022

Conversation

chainsawriot
Copy link
Collaborator

Please make sure that you have the envvar RTOOT_DEFAULT_TOKEN which contains your default token in plain text, IF YOU WANT TO RECORD NEW VCR CASSETTES.

See tests/testthat/setup-rtoot.R.

If you don't set that up first, your token will be exposed in the recorded cassette. If there are new cassettes in fixtures in future commits, we need to check if any token is exposed.

However, if you just want to run those tests, you don't need to do that. (But it doesn't harm to do that.)

I will also add an entry in our wiki about creating tests, if this is merged.

https://github.com/schochastics/rtoot/wiki

…eline`

Please make sure that you have the envvar `RTOOT_DEFAULT_TOKEN` which
contains your default token in plain text, IF YOU WANT TO RECORD NEW
VCR CASSETTES.

See `tests/testthat/setup-rtoot.R`.

If you don't set that up first, your token will be exposed in the
recorded cassette. If there are new cassettes in `fixtures` in
future commits, we need to check if any token is exposed.

However, if you just want to run those tests, you don't need to do
that. (But it doesn't harm to do that.)

I will also add an entry in our wiki about creating tests, if this is merged.

https://github.com/schochastics/rtoot/wiki
@chainsawriot
Copy link
Collaborator Author

I have tested both vcr and httptest. And vcr works better for our purposes. #19

@schochastics schochastics merged commit f0556c6 into gesistsa:main Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants