Skip to content

Commit ae2827e

Browse files
committed
docs(README): fix typo and replace "fake" with "test double"
1 parent 4234a56 commit ae2827e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def decoy() -> Decoy:
5454
return Decoy()
5555
```
5656

57-
Why is this important? The `Decoy` container tracks every fake that is created during a test so that you can define assertions using fully-typed rehearsals of your test double. It's important to wipe this slate clean for every test so you don't leak memory or have any state preservation between tests.
57+
Why is this important? The `Decoy` container tracks every test double that is created during a test so that you can define assertions using fully-typed rehearsals. It's important to wipe this slate clean for every test so you don't leak memory or have any state preservation between tests.
5858

5959
[pytest]: https://docs.pytest.org/
6060

@@ -79,7 +79,7 @@ plugins = decoy.mypy
7979

8080
### Stubbing
8181

82-
A stub is a an object used in a test that is pre-configured to return a result or raise an error if called according to a specification. In Decoy, you specify a stub's call expectations with a "rehearsal", which is simply a call to the stub inside of a `decoy.when` wrapper.
82+
A stub is an object used in a test that is pre-configured to return a result or raise an error if called according to a specification. In Decoy, you specify a stub's call conditions with a "rehearsal", which is simply a call to the stub inside of a `decoy.when` wrapper.
8383

8484
By pre-configuring the stub with specific rehearsals, you get the following benefits:
8585

0 commit comments

Comments
 (0)