mirror of
https://github.com/jtgans/g13gui.git
synced 2025-06-20 08:23:50 -04:00
g13gui: Ensure Preferences stores the selected profile
This commit is contained in:
parent
fce850f786
commit
20486af0d0
@ -91,9 +91,11 @@ class PrefsTestCase(ObserverTestCase):
|
|||||||
p = prefs.Preferences()
|
p = prefs.Preferences()
|
||||||
initial_d = p.saveToDict()
|
initial_d = p.saveToDict()
|
||||||
self.assertIsNotNone(initial_d)
|
self.assertIsNotNone(initial_d)
|
||||||
|
|
||||||
self.assertEqual(initial_d['version'], VERSION)
|
self.assertEqual(initial_d['version'], VERSION)
|
||||||
self.assertIn('profiles', initial_d)
|
self.assertIn('profiles', initial_d)
|
||||||
self.assertIn('selectedProfile', initial_d)
|
self.assertIn('selectedProfile', initial_d)
|
||||||
|
self.assertEqual('Default Profile', initial_d['selectedProfile'])
|
||||||
|
|
||||||
p = prefs.Preferences(initial_d)
|
p = prefs.Preferences(initial_d)
|
||||||
new_d = p.saveToDict()
|
new_d = p.saveToDict()
|
||||||
|
Loading…
Reference in New Issue
Block a user