Skip to content

Commit

Permalink
Functional test testing
Browse files Browse the repository at this point in the history
  • Loading branch information
chr-pok committed Jul 10, 2024
1 parent 053b800 commit 45b7f0c
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions tests/functional/test_parquet2hdf5.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@


def test_parquet2hdf5():
"""Test if parquet2hdf5 function is available. Will raise an FileNotFoundError if not."""
with subprocess.Popen(
["parquet2hdf5", "--version"],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
env={"PATH": os.getenv("PATH", "")},
) as proc:
print("parquet2hdf5 v" + proc.communicate()[0].decode())
"""Test if parquet2hdf5 function is available."""
try:
with subprocess.Popen(
["parquet2hdf5", "--version"],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
env={"PATH": os.getenv("PATH", "")},
) as proc:
print("parquet2hdf5 v" + proc.communicate()[0].decode())
except FileNotFoundError as e:
assert False, str(e) + f"\nPATH={os.getenv("PATH", "")}"

0 comments on commit 45b7f0c

Please sign in to comment.