Skip to content
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

Feature/add header validation get all records #984

Merged
merged 3 commits into from
Jan 26, 2022

Conversation

lavigne958
Copy link
Collaborator

@lavigne958 lavigne958 commented Jan 23, 2022

1st commit:
Fix issue with tests cassettes.

2nd commit:
Add header validation for method get_all_records.
If duplicate headers exists raise exception.

Again, like any changes on test cassettes, skip the first commit to prevent your diff to show 1000s of lines.
Or use github to only show you the diff on .py files.

Before each test, the current worksheet is cleared to make
sure the test start with no values from previous test.

This was recorded in the same test cassette and the API
call to clear the sheet is the same every time. This leads
to pyvcr not making the actuall HTTP request and not clearing
the worksheet because it uses the response from the cassette.

Moved the record of the HTTP requests to clear the worksheet
with the test itself, this makes sure it is made for each test
during recording.

Closes #983
The header row used as kesy for the created dict
must contain no duplcated values.

Check that each value is unique.

Closes #973
gspread/worksheet.py Outdated Show resolved Hide resolved
@lavigne958 lavigne958 merged commit 75fa419 into master Jan 26, 2022
@lavigne958 lavigne958 deleted the feature/add_header_validation_get_all_records branch January 26, 2022 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants