Skip to content

Commit 60c182d

Browse files
Евгений БлиновЕвгений Блинов
authored andcommitted
Improve README: clarify fixture generates variants automatically
1 parent 50c849d commit 60c182d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
![logo](https://raw.githubusercontent.com/mutating/transtests/develop/docs/assets/logo_1.svg)
2020

21-
If your code needs to work the same way with regular, asynchronous, and generator functions, you normally have to write three sets of nearly identical tests. With this library, you no longer need to do that — just use the special fixture, which generates the necessary variants automatically.
21+
If your code needs to work the same way with regular, asynchronous, and generator functions, you normally have to write three sets of nearly identical tests. With this library, you no longer need to do that — just use the special fixture, which automatically generates the variants.
2222

2323

2424
## Usage
@@ -50,4 +50,6 @@ def test_something(transformed):
5050
assert some_function(1, 2) == 3
5151
```
5252

53+
> ↑ The test will be run three times automatically, once for each variant.
54+
5355
This functionality is based on the [`transfunctions`](https://github.com/mutating/transfunctions) library, so you can use context managers from that library in the source function.

0 commit comments

Comments
 (0)