def test_emit_ui_available(mocker): """Test ht.events.callbacks._emit_ui_available.""" mock_run = mocker.patch("ht.events.callbacks.run_event") callbacks._emit_ui_available() mock_run.assert_called_with(SceneEvents.WhenUIAvailable)
def test(self, mock_run): """Run the WhenUIAvailable event.""" callbacks._emit_ui_available() mock_run.assert_called_with(SceneEvents.WhenUIAvailable)