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

Adding a gzip-ed text file for requests download system test. #35

Merged
merged 2 commits into from
Oct 20, 2017

Conversation

dhermes
Copy link
Contributor

@dhermes dhermes commented Oct 20, 2017

This has revealed at least two errors and this is intended to be checked in in a broken state, so that subsequent PRs can fix it. (See dhermes@29617b6 for a preview of one such fix).

In order to make this easy, I re-factored the tests in a commit before, so it's likely easier to review this PR commit-by-commit.

/cc @tseaver @mfschwartz

- Replace `IMG_FILES` (tuple of `str`) with `ALL_FILES`, which is a tuple
  of info dictionaries for each file (including `path` and `content_type`)
- Factor the slice choices out of `test_download_partial` and
  `test_chunked_download_partial` and put them in `ALL_FILES`
This has revealed at least two errors and this is intended to
be checked in in a broken state, so that subsequent PRs can
fix it.
u'content_type': PLAIN_TEXT,
# NOTE: This **should** be u'KHRs/+ZSrc/FuuR4qz/PZQ=='.
u'checksum': u'XHSHAr/SpIeZtZbjgQ4nGw==',
u'slices': (),

This comment was marked as spam.

@dhermes
Copy link
Contributor Author

dhermes commented Oct 20, 2017

Thanks @tseaver!

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.

4 participants