mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-04-12 13:20:43 -04:00
Some of the tests were calling methods that didn't exist on MagicMock objects, which meant that they were always passing. For example, tests using the format of MagicMock.called_once_with(...) were always passing since a MagicMock does not have the method `called_once_with`. Changing this to `assert_called_once_with` ensures that the tests fail if they're called with the wrong arguments.