Commit e1d4173
committed
test: fix called_once_withh in test_create_netbox_object_check_mode_false
Calling `MagicMock.called_once_with` returns a mock object and asserting
that always succeeds. Replace this call with
`MagicMock.assert_called_with` in
`test_create_netbox_object_check_mode_false` since
`endpoint_mock.create` is called twice: once in the test setup and once
by `_create_netbox_object`.
Signed-off-by: Benjamin Drung <[email protected]>1 parent 9bddc60 commit e1d4173
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
| 303 | + | |
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
| |||
0 commit comments