Skip to content

Commit

Permalink
Update pytest.md
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipMay authored Jan 2, 2024
1 parent 87c02eb commit 0c9a255
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/python/pytest.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def test_my_fruit_in_basket(my_value):
```python
import pytest

@pytest.mark.parametrize("test_input, expected", [("3+5", 8), ("2+4", 6), ("6*9", 42)])
@pytest.mark.parametrize("test_input,expected", [("3+5", 8), ("2+4", 6), ("6*9", 42)])
def test_eval(test_input, expected):
assert eval(test_input) == expected
```
Expand Down

0 comments on commit 0c9a255

Please sign in to comment.