Modifies the tests to use the defaults created in configprovider.py #3334
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.
Botocore has a number of unit tests that create a client using an empty ConfigValueStore object. Doing this causes the client constructor to lose the default arguments for configurations. This creates some extra work when we are resolving the arguments; for
request_min_compression_size_bytes
, we just skip the validation all-together if the value isNone
due to this test.This PR fixes the tests to use the default botocore ConfigValueStore object. This allows us to re-enable the validation on
request_min_compression_size_bytes
, properly throwing an error for aNone
value. It also allows for future configurations to rely on their defaults when validating an input configuration value without having to code around these tests.