Skip to content

Commit

Permalink
Fix pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
Lakshidaa committed Jun 3, 2024
1 parent f109429 commit 7daa702
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,8 +419,12 @@ def test_download_public_data(tmpdir, mocker, add_cli_arguments):

download_main()

filenames = glob.glob(str(tmpdir / "*.hdf5"))
assert len(filenames) == 4
filenames = glob.glob(str(tmpdir / "*.onnx"))
assert len(filenames) == 3

filenames = glob.glob(str(tmpdir / "*.onnx"))
assert len(filenames) == 1

for filename in filenames:
with open(filename, "r") as fileobj:
assert fileobj.read() == "abcdef"
Expand Down

0 comments on commit 7daa702

Please sign in to comment.