Scott Chamberlain

Results 410 issues of Scott Chamberlain

``` r library(vcr) library(httr2) tmpdir Warning in file(con, "r"): cannot open file #> '/var/folders/qt/fzq1m_bj2yb_7b2jz57s9q7c0000gp/T//Rtmp8tCUFj/files/file6ec3313ed849': #> No such file or directory #> Error in file(con, "r"): cannot open the connection ```...

httr2

So in https://github.com/getwilds/rcromwell/issues/44 a use case has come up that it'd be nice to have context-dependent usage of cassettes. Consider the following use case where jobs are submitted to some...

e.g., need to fix test output ```r ℹ Testing webmockr ✔ | F W S OK | Context ✔ | 3 | Adapter class ✔ | 6 | auth_handling ✔...

bug

To help folks understand the internals and potential contribs and myself in future

see https://blog.arkency.com/recording-real-requests-with-webmock/

right now `BODY_FORMATS` is just a lookup in a named list. This doesn't allow for flexibly detecting json or xml, etc. in a content type string. so change to a...

Right now a user has to give an xml class item to stub_request to match to an xml request body because for request bodies if we detect xml we just...

Stub suggestion sometimes gets cut off ```r some_fun_call() Error: Real HTTP connections are disabled. Unregistered request: POST: https://something.com xxxxxx You can stub this request with the following snippet: stub_request('post', uri...

webmock has quite a bit of logic in their QueryMapper class https://github.com/bblimke/webmock/blob/9ff63ac7c845a75278e43236e0128e197f597462/lib/webmock/util/query_mapper.rb#L4 Right now ours is basically a dummy function that returns itself unless NULL. Not sure I have the...

seems quite easy with python's `pook` (`mock.calls`), see first example block at https://github.com/h2non/pook?tab=readme-ov-file#examples in this package, perhaps something like ```r # use a function so user doesn't have to figure...