Commits

Virgil Dupras committed c5d041f

Fixed tests broken by latest developments.

Comments (0)

Files changed (3)

core/gui/main_window.py

         self.document.set_default(Preference.SelectedPane, self._current_pane_index)
         self.document.set_default(Preference.HiddenAreas, list(self.hidden_areas))
         window_frame = self.view.save_window_frame()
-        self.document.set_default(Preference.WindowFrame, list(window_frame))
+        if window_frame:
+            self.document.set_default(Preference.WindowFrame, list(window_frame))
     
     def _set_panes(self, pane_data):
         # Replace opened panes with new panes from `pane_data`, which is a [(pane_type, arg)]

core/tests/gui/entry_print_test.py

 
 @with_app(app_split_transaction)
 def test_split_values(app):
-    eq_(app.pv.split_values(0, 0), ['foo', 'foo memo', '100.00'])
-    eq_(app.pv.split_values(0, 2), ['split1', 'some memo', '10.00'])
-    eq_(app.pv.split_values(0, 4), ['Unassigned', '', '-9.00'])
+    eq_(app.pv.split_values(0, 0), ('foo', 'foo memo', '100.00'))
+    eq_(app.pv.split_values(0, 2), ('split1', 'some memo', '10.00'))
+    eq_(app.pv.split_values(0, 4), ('Unassigned', '', '-9.00'))
 
 @with_app(app_split_transaction)
 def test_main_split_always_first(app):
     # Always show the "main" split (the one represented by the entry) first.
     aview = app.show_account('bar')
     pv = EntryPrint(aview)
-    eq_(pv.split_values(0, 0), ['bar', '', '-100.00'])
+    eq_(pv.split_values(0, 0), ('bar', '', '-100.00'))
 
 #--- Entry in previous range
 def app_entry_in_previous_range():

core/tests/gui/transaction_print_test.py

 
 @with_app(app_split_transaction)
 def test_split_values(app):
-    eq_(app.pv.split_values(0, 2), ['split1', 'some memo', '10.00'])
-    eq_(app.pv.split_values(0, 4), ['Unassigned', '', '-9.00'])
+    eq_(app.pv.split_values(0, 2), ('split1', 'some memo', '10.00'))
+    eq_(app.pv.split_values(0, 4), ('Unassigned', '', '-9.00'))