Fixing broken tests #2126

- KMS
- S3
- CloudFormation (Thanks kgutwin!)
This commit is contained in:
Mike Grima 2019-03-25 13:19:01 -07:00
commit 921b5a3227
5 changed files with 10 additions and 8 deletions

View file

@ -15,6 +15,7 @@ class AuthenticatedClient(FlaskClient):
def open(self, *args, **kwargs):
kwargs['headers'] = kwargs.get('headers', {})
kwargs['headers']['Authorization'] = "Any authorization header"
kwargs['content_length'] = 0 # Fixes content-length complaints.
return super(AuthenticatedClient, self).open(*args, **kwargs)