-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delay wsgi interception until after fixtures
Some WSGI applications require a lot of prior setup before they can be use. Since we want most of that setup to happen in fixtures, wsgi-interception is delayed until after all extant fixtures have been started. This is done with a built in default fixture that is run as the most deeply nested of the context managers. The intecept callable is passed on along to the tests so that suite can be made aware of and use it when using the intercept context manager. If the callable is a function, when it is passed into the class builder, it can become bound to the TestCase. This binding is unbound in the caller.
- Loading branch information
Showing
4 changed files
with
47 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,4 @@ | |
# under the License. | ||
"""See gabbi.driver and gabbbi.case.""" | ||
|
||
__version__ = '0.4.0' | ||
__version__ = '0.5.0' |
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