Skip to content

Commit

Permalink
Reorder case
Browse files Browse the repository at this point in the history
  • Loading branch information
yutaro-oguri committed Oct 19, 2023
1 parent d658192 commit 3b89f36
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions test/test_target.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,16 @@ def test_save_and_load_feather(self):

pd.testing.assert_frame_equal(loaded, obj)

def test_save_and_load_feather_without_store_index_in_feather(self):
obj = pd.DataFrame(dict(a=[1, 2], b=[3, 4]), index=pd.Index([33, 44], name='object_index')).reset_index()
file_path = os.path.join(_get_temporary_directory(), 'test.feather')

target = make_target(file_path=file_path, unique_id=None, store_index_in_feather=False)
target.dump(obj)
loaded = target.load()

pd.testing.assert_frame_equal(loaded, obj)

def test_save_and_load_ini(self):
obj = configparser.ConfigParser()
obj['DEFAULT'] = {'a': '1', 'b': 'yes', 'c': 2}
Expand All @@ -132,16 +142,6 @@ def test_save_and_load_ini(self):

self.assertEqual(loaded, obj)

def test_save_and_load_feather_without_store_index_in_feather(self):
obj = pd.DataFrame(dict(a=[1, 2], b=[3, 4]), index=pd.Index([33, 44], name='object_index')).reset_index()
file_path = os.path.join(_get_temporary_directory(), 'test.feather')

target = make_target(file_path=file_path, unique_id=None, store_index_in_feather=False)
target.dump(obj)
loaded = target.load()

pd.testing.assert_frame_equal(loaded, obj)

def test_last_modified_time(self):
obj = pd.DataFrame(dict(a=[1, 2], b=[3, 4]))
file_path = os.path.join(_get_temporary_directory(), 'test.csv')
Expand Down

0 comments on commit 3b89f36

Please sign in to comment.