-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle
gin.bind_parameter
in tests (#395)
If a test needs to `gin.bind_parameter` it should also clear that, or make the binding within a `gin.config_scope`, otherwise the bindings may leak to other tests if all the tests are run by e.g. pytest. This patch uses both approaches: for tests that set up bindings in `setUp` we clear in `tearDown`, else we use the scoped approach. Issue #394
- Loading branch information
Showing
3 changed files
with
42 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters