Open sckott opened 5 years ago
working on this in this pkg https://github.com/ropenscilabs/timefuzz
that's interesting, what's the status on this?
timefuzz and clock are still in development - working for the most part BUT the problem is that monkey patching in R is not allowed, so to be able to mock time you'd have to import, or at least suggest, clock and maybe timefuzz too - some may not want to add additional imports just to mock time, but some will
Yeah I suppose that depending on the requests a package makes, mocking time might be crucial!
e.g.,
works fine on the date its run, but then e.g., the next day it's run the date generated in
Sys.Date()
will be the next day, and then vcr will error and complain that the request doesn't match the fixture infoobar
.https://github.com/vcr/vcr/issues/154 either 1)
before_record
/before_playback
hooks or 2) custom request matcher