@@ -18,13 +18,13 @@ allows you to:
18
18
19
19
### Testing
20
20
21
- To inject recording and playback into your tests, use the InterposerTestCase
21
+ To inject recording and playback into your tests, use the ` InterposedTestCase `
22
22
class and patch interposed versions of external services. An example of this
23
23
can be found in the [ example_weather_test] ( https://github.com/tuono/interposer/blob/develop/tests/example_weather_test.py ) ,
24
24
which tests [ weather.py] ( https://github.com/tuono/interposer/blob/develop/interposer/_testing/weather.py ) .
25
25
26
- To generate a recording, InterposerTestCase looks for an environment variable
27
- named RECORDING and if set (and not empty), will generate a recording of the
26
+ To generate a recording, ` InterposedTestCase ` looks for an environment variable
27
+ named ` RECORDING ` and if set (and not empty), will generate a recording of the
28
28
interaction with the interposed class(es):
29
29
30
30
```
@@ -50,7 +50,7 @@ sys 0m0.212s
50
50
```
51
51
52
52
Given tox has a roughly 2 second startup time, we see the playback is
53
- essentially as fast as a handcrafted mock, but took less time to make!
53
+ essentially as fast as a handcrafted mock, but took way less time to make!
54
54
More details can be found in the Recording and Playback section below.
55
55
56
56
### Auditing
@@ -259,7 +259,7 @@ in a wrapped class.
259
259
260
260
TODO: provide example!
261
261
262
- ## Notes
262
+ ## Other Notes
263
263
264
264
- Interposer is a resource, so you need to call open() and close() or
265
265
use the ScopedInterposer context manager.
0 commit comments