Add tray controls for pause reload and diagnostics
This commit is contained in:
parent
77ae21d0f6
commit
e262b26db7
5 changed files with 192 additions and 8 deletions
|
|
@ -333,6 +333,18 @@ class DaemonTests(unittest.TestCase):
|
|||
|
||||
self.assertEqual(ai_processor.last_kwargs.get("profile"), "fast")
|
||||
|
||||
@patch("aman.start_audio_recording")
|
||||
def test_paused_state_blocks_recording_start(self, start_mock):
|
||||
desktop = FakeDesktop()
|
||||
daemon = self._build_daemon(desktop, FakeModel(), verbose=False)
|
||||
|
||||
self.assertTrue(daemon.toggle_paused())
|
||||
daemon.toggle()
|
||||
|
||||
start_mock.assert_not_called()
|
||||
self.assertEqual(daemon.get_state(), aman.State.IDLE)
|
||||
self.assertEqual(desktop.cancel_listener_start_calls, 0)
|
||||
|
||||
|
||||
class LockTests(unittest.TestCase):
|
||||
def test_lock_rejects_second_instance(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue