-
Notifications
You must be signed in to change notification settings - Fork 14
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
examples and tests #19
Comments
For https://github.com/cjbarrie/academictwitteR/blob/master/tests/testthat/test-get_all_tweets.R |
For Edited: I'm gonna test both. |
|
Test cases for
Priority will be given to the ones using |
Data structure testing
|
anything I need to setup so test work? I get the following error for all account level tests:
Edit:
|
Now i know the cases are not robust, due to the decentralised nature of
mastodon. I think I’ll need to fix that first. But I think you can at the
same time dealing with the renaming. The test cases need to change anyway.
…On Wed, 9 Nov 2022 at 14:56, David Schoch ***@***.***> wrote:
anything I need to setup so test work? I get the following error for all
account level tests:
Error (test-get_account_auth.R:12:3): get_account_followers
Error:
================================================================================
An HTTP request has been made that vcr does not know how to handle:
GET https://fosstodon.org/api/v1/accounts/109281650341067731/followers?limit=3
vcr is currently using the following cassette:
- /home/david/Documents/R/rtoot/tests/fixtures/get_account_followers_default.yml
- record_mode: once
- match_requests_on: method, uri
Set `VCR_VERBOSE_ERRORS=TRUE` for more verbose errors
If you're not sure what to do, open an issue https://github.com/ropensci/vcr/issues
& <https://github.com/ropensci/vcr/issues&> see https://books.ropensci.org/http-testing
================================================================================
Backtrace:
1. vcr::use_cassette(...)
at test-get_account_auth.R:12:2
3. rtoot::get_account_followers(id = id, limit = 3)
at test-get_account_auth.R:13:4
4. rtoot:::process_request(...)
at rtoot/R/accounts.R:86:2
5. rtoot:::make_get_request(...)
at rtoot/R/utils.R:84:2
6. httr::GET(httr::modify_url(url, path = path), config, query = params)
at rtoot/R/utils.R:32:2
7. httr:::request_perform(req, hu$handle$handle)
8. httr:::perform_callback("request", req = req)
9. webmockr (local) callback(...)
10. webmockr::HttrAdapter$new()$handle_request(req)
11. private$request_handler(req)$handle()
12. eval(parse(text = req_type_fun))(self$request)
13. err$run()
14. self$construct_message()
—
Reply to this email directly, view it on GitHub
<#19 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAE3SVIYZZGNAGKWZRJBMU3WHOUR3ANCNFSM6AAAAAARZDPEPI>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
sounds good. Probably gonna have a PR somewhen tonight |
With this, maybe we should setup CI now. |
yep gonna set it up |
Probably need to learn from rtweet how to properly setup unit testing and examples. Suggestions welcome
The text was updated successfully, but these errors were encountered: