Skip to content

Commit

Permalink
test adjusted
Browse files Browse the repository at this point in the history
  • Loading branch information
sorenwacker committed Apr 27, 2023
1 parent eb59568 commit 8fb5819
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test__tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ def test__get_metadata_after_more_files_added(tmp_path):

metadata = T.get_metadata(wdir)

metadata.loc[0, 'PeakOpt'] = True
ndx = metadata[metadata['MS-file']=='F1'].index[0]
metadata.loc[ndx, 'PeakOpt'] = True

print(metadata)

Expand All @@ -106,9 +107,8 @@ def test__get_metadata_after_more_files_added(tmp_path):
for subpath in P(tmp_path).rglob('*'):
print(subpath)

metadata = T.get_metadata(wdir)

print(metadata)
# Make sure metadata is in the correct order
metadata = T.get_metadata(wdir).set_index('MS-file').sort_index()

assert all(metadata.PeakOpt == [True, False, False, False])

Expand Down

0 comments on commit 8fb5819

Please sign in to comment.