Release Vulpes OS 2.7-preview.24
This commit is contained in:
parent
49572b6b45
commit
97ef99f827
135 changed files with 7717 additions and 2524 deletions
|
|
@ -20,6 +20,15 @@ class Buttons(unittest.TestCase):
|
|||
for p in [{'operation':'screen','enabled':True,'level':-1},{'operation':'volume','level':float('nan')},{'operation':'exec','command':'true'}]:
|
||||
with self.assertRaises(ValueError):b.control(p)
|
||||
|
||||
def test_display_state_updates_all_logind_sessions(self):
|
||||
sessions='1 32011 droidian - 1017 manager - no -\nc2 32011 droidian - 1082 background - no -\nc3 32011 droidian seat0 1119 user tty7 no -\n'
|
||||
with patch.object(b.subprocess,'run') as run:
|
||||
run.side_effect=[type('Result',(),{'stdout':sessions})(),None,None,None]
|
||||
self.assertTrue(b.set_session_idle(True))
|
||||
calls=[call.args[0] for call in run.call_args_list[1:]]
|
||||
self.assertEqual(len(calls),3)
|
||||
self.assertTrue(all(call[-2:]==['b','true'] for call in calls))
|
||||
|
||||
def test_vibration_pattern_progresses_without_blocking_and_can_be_cancelled(self):
|
||||
with tempfile.TemporaryDirectory() as d,patch.object(b,'VIBRATOR',Path(d)),patch.object(b.time,'monotonic',return_value=10):
|
||||
(Path(d)/'trigger').write_text('[transient]')
|
||||
|
|
|
|||
Loading…
Reference in a new issue