Skip to content

Commit

Permalink
Added functional test for parquet2hdf5
Browse files Browse the repository at this point in the history
  • Loading branch information
chr-pok committed Jul 10, 2024
1 parent 786bb46 commit 053b800
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
18 changes: 18 additions & 0 deletions tests/functional/test_parquet2hdf5.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# This file is part of connectome-manipulator.
#
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2024 Blue Brain Project/EPFL

import os
import subprocess


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())
11 changes: 1 addition & 10 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,9 @@ commands = pytest -vv tests/unit
[testenv:functional]
passenv =
PATH
GITHUB_PATH
setenv =
TESTVAR = "abc"
allowlist_externals =
echo
parquet2hdf5
commands =
echo "{env:PATH}"
echo "{env:GITHUB_PATH}"
echo "{env:TESTVAR}"
parquet2hdf5 --version
# commands = pytest -vv tests/functional
commands = pytest -vv tests/functional

[testenv:lint]
deps =
Expand Down

0 comments on commit 053b800

Please sign in to comment.