Skip to content

Commit ae6f62e

Browse files
style: pre-commit fixes
1 parent e1115f1 commit ae6f62e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/pages/principles/testing.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -337,12 +337,12 @@ These are a few of the cases that cause the most confusion.
337337
```python
338338
# src.lib
339339
def dangerous_sideffects():
340-
raise RuntimeError('BOOM')
340+
raise RuntimeError("BOOM")
341341

342342

343343
def say_hello():
344344
dangerous_sideffects()
345-
return 'hello world'
345+
return "hello world"
346346
```
347347

348348
```python
@@ -351,11 +351,11 @@ from src.lib import say_hello, dangerous_sideffects
351351

352352
def test_pytest(mocker):
353353
# Given this context
354-
mock_say_hello = mocker.patch('src.lib.dangerous_sideffects')
354+
mock_say_hello = mocker.patch("src.lib.dangerous_sideffects")
355355
# When we run the code
356356
ret = say_hello()
357357
# Then we expect the result
358-
assert ret == 'hello world'
358+
assert ret == "hello world"
359359
mock_dangerous_sideffects.assert_called_once()
360360

361361
# But this will still raise an exception!

0 commit comments

Comments
 (0)