You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The plan is to leverage tools like betamax allowing to intercept every request made and attempting to find a matching request that has already been intercepted and recorded.
It works well and is very easy to use. Just by adding the decorator @pytest.mark.vcr() on top of each one of your test you'd like to record the server responses, like for instance:
@pytest.mark.vcr()
def test_main():
import github_release as ghr
with pytest.raises(SystemExit) as exc_info:
ghr.main()
assert exc_info.code == 0
Running the test for the first time will create a folder cassettes in path/to/folder/github-release/tests which will contain a file.yml for each tests decorate by @pytest.mark.vcr().
The plan is to leverage tools like betamax allowing to intercept every request made and attempting to find a matching request that has already been intercepted and recorded.
See http://betamax.readthedocs.io/
The text was updated successfully, but these errors were encountered: