Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Chilipp committed May 15, 2018
1 parent 9569c95 commit b7e6aae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/widgets/test_menu_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def test_export_final(self):
fname = self.get_random_filename(suffix='.csv')
self.straditizer_widgets.menu_actions.export_final(fname)
self.assertTrue(osp.exists(fname), msg=fname + ' is missing!')
exported = pd.read_csv(fname, index_col=0)
exported = pd.read_csv(fname, index_col=0, comment='#')
exported.columns = self.reader._full_df.columns
self.assertFrameEqual(exported, self.straditizer.final_df)

Expand All @@ -109,7 +109,7 @@ def test_export_full_df(self):
fname = self.get_random_filename(suffix='.csv')
self.straditizer_widgets.menu_actions.export_full(fname)
self.assertTrue(osp.exists(fname), msg=fname + ' is missing!')
exported = pd.read_csv(fname, index_col=0)
exported = pd.read_csv(fname, index_col=0, comment='#')
exported.columns = self.reader._full_df.columns
self.assertFrameEqual(exported, self.straditizer.full_df)

Expand Down
1 change: 1 addition & 0 deletions tests/widgets/test_straditizer_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def test_edit_attrs(self):
n = len(self.window.dataframeeditors)
editor, combo = self.straditizer_widgets.edit_attrs()
self.assertEqual(len(self.window.dataframeeditors), n+1)
combo.addItem('latitude')
combo.setCurrentText('latitude')
self.assertIn('latitude', self.straditizer.attrs.index)

Expand Down

0 comments on commit b7e6aae

Please sign in to comment.