Closed kiendang closed 1 year ago
Discover this small "typo" while working on #1413.
<Mock>.called_once() just returns a Mock, so assert <Mock>.called_once() always passes. We want <Mock>.assert_called_once().
<Mock>.called_once()
Mock
assert <Mock>.called_once()
<Mock>.assert_called_once()
Discover this small "typo" while working on #1413.
<Mock>.called_once()
just returns aMock
, soassert <Mock>.called_once()
always passes. We want<Mock>.assert_called_once()
.