mintel / pytest-localstack

Pytest plugin for local AWS integration tests
MIT License
78 stars 18 forks source link

Cleanup boto3.DEFAULT_SESSION when patches exit #24

Closed ghost closed 5 years ago

ghost commented 5 years ago

When our patches exit, the DEFAULT_SESSION global from boto3 is left as an invalid session in a incomplete state after having it's _components removed. We should reset this global to how it was prior to the patch.