Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mschwoer committed Dec 19, 2024
1 parent 6309df8 commit 25c4bc0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/unit_tests/test_search_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,13 @@ def test_library_loading():
for test_dict in test_cases:
print("Testing {}".format(test_dict["name"]))

# TODO this is not a unit test
test_data_location = DataShareDownloader(
test_dict["url"], temp_directory
).download()
step = search_step.SearchStep(temp_directory, library_path=test_data_location)
step = search_step.SearchStep(
temp_directory, {"library_path": test_data_location}
)
assert len(step.spectral_library.precursor_df) > 0
assert len(step.spectral_library.fragment_df) > 0

Expand Down

0 comments on commit 25c4bc0

Please sign in to comment.