Restructure download handler tests. #6821
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This tries to reshuffle the test code to allow running the code with alternative download handlers. New structure:
DownloadHandlers
and for specific non-HTTP download handlersAll the actually run test methods should be the same, except for 2 new but skipped methods in
test_downloader_handler_twisted_http10.TestHttp10Proxy
. The 1.1 and 2 files are now independent from each other, only depending on the base file, though some 2 classes inherit from 1.1 ones, which I don't think we can do anything about as the protocols do the same. We may need some more restructuring when we actually get alternative handlers, especially ones with 2.0, but this is a first step.