Skip to content

Commit

Permalink
FIX test core module: FDH5 files names in log_data().
Browse files Browse the repository at this point in the history
  • Loading branch information
Arkh42 committed Jul 17, 2020
1 parent aea1163 commit 5c15e05
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rtestbench/tests/test_core.py
Expand Up @@ -740,18 +740,18 @@ def test_log_data(tmp_path, rtb_quiet):
del test_data

rtb_quiet.log_data('hdf5_fixed', str(f), ('x', fake_data_x), ('y', fake_data_y))
test_data = pd.read_hdf(d / "data_file.h5")
test_data = pd.read_hdf(d / "data_file.fixed.h5")
assert np.array_equal(fake_data_x, test_data['x'].to_numpy())
assert np.array_equal(fake_data_y, test_data['y'].to_numpy())
del test_data

rtb_quiet.log_data('hdf5_table', str(f), ('x', fake_data_x), ('y', fake_data_y))
test_data = pd.read_hdf(d / "data_file.h5")
test_data = pd.read_hdf(d / "data_file.table.h5")
assert np.array_equal(fake_data_x, test_data['x'].to_numpy())
assert np.array_equal(fake_data_y, test_data['y'].to_numpy())
del test_data

assert len(list(d.iterdir())) == 4
assert len(list(d.iterdir())) == 5

def test_save_data(tmp_path, rtb_quiet):
d = tmp_path
Expand Down

0 comments on commit 5c15e05

Please sign in to comment.