File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -337,12 +337,12 @@ These are a few of the cases that cause the most confusion.
337337``` python
338338# src.lib
339339def dangerous_sideffects ():
340- raise RuntimeError (' BOOM' )
340+ raise RuntimeError (" BOOM" )
341341
342342
343343def 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
352352def 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!
You can’t perform that action at this time.
0 commit comments