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
Simplify the test cassettes. Move every setup API call to a single file
Details
Currently we generate the following cassettes for each test class:
create the spreadsheet
clear the sheet
the test itself
We could merge the first 2 cassettes.
This will allow us to clear any API call needed to do the setup in a single file. This is necessary in case the test needs to change the API call to record (Add, remove, update calls).
The text was updated successfully, but these errors were encountered:
- Use a single cassette for the whole init/teardown
- Use a cassette file name with no white characters
If test needs to update the API call it makes, it is easier to only have
to re-generate a single file.
The spreadsheet creation is done only once but the single sheet is
cleared everytime before a new test starts. We must record the
spreadsheet creation then close the cassette to allow the fixture
`reset_sheet` to find the cassette. Then open it again to record the
file deletion.
Next time a test needs to be updated and make an extra API call,
simplify delete the cassette and run the test recording new episodes.
Closes#981
Overview
Simplify the test cassettes. Move every setup API call to a single file
Details
Currently we generate the following cassettes for each test class:
We could merge the first 2 cassettes.
This will allow us to clear any API call needed to do the setup in a single file. This is necessary in case the test needs to change the API call to record (Add, remove, update calls).
The text was updated successfully, but these errors were encountered: