def test_atexit_callback(mocker): """Test ht.events.callbacks._atexit_callback.""" mock_run = mocker.patch("ht.events.callbacks.run_event") callbacks._atexit_callback() mock_run.assert_called_with(SceneEvents.Exit)
def test(self, mock_run): """Run the Exit event.""" callbacks._atexit_callback() mock_run.assert_called_with(SceneEvents.Exit)