Skip to content

Commit

Permalink
Fix typo in tests-pytest-intro.rst
Browse files Browse the repository at this point in the history
What I did

Noticed and fixed a small typo in the test documentation.
  • Loading branch information
tfalencar committed Oct 1, 2021
1 parent 8780525 commit b69a188
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tests-pytest-intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Brownie provides two fixtures that are used to handle isolation:
* :func:`module_isolation <fixtures.module_isolation>` is a module scoped fixture. It resets the local chain before and after completion of the module, ensuring a clean environment for this module and that the results of it will not affect subsequent modules.
* :func:`fn_isolation <fixtures.fn_isolation>` is function scoped. It additionally takes a snapshot of the chain before running each test, and reverts to it when the test completes. This allows you to define a common state for each test, reducing repetitive transactions.

Isolation fixtures are **always the first fixture within their scope to execute**. You can be certain that any action performed within a fuction-scoped fixture will happend `after` the isolation snapshot.
Isolation fixtures are **always the first fixture within their scope to execute**. You can be certain that any action performed within a fuction-scoped fixture will happen `after` the isolation snapshot.

To apply an isolation fixture to all tests in a module, require it in another fixture and include the ``autouse`` parameter:

Expand Down

0 comments on commit b69a188

Please sign in to comment.