Skip to content
Snippets Groups Projects
Verified Commit fb2d813a authored by Christoph Lehmann's avatar Christoph Lehmann Committed by Lars Bilke
Browse files

[T] Adjusted Python CLI tool test.

parent f86edadd
No related branches found
No related tags found
No related merge requests found
...@@ -3,13 +3,13 @@ import os ...@@ -3,13 +3,13 @@ import os
import pytest import pytest
import ogs import ogs._internal.provide_ogs_cli_tools_via_wheel as ogs_cli_wheel
from . import push_argv from . import push_argv
def _run(program, args): def _run(program, args):
func = getattr(ogs, program) func = getattr(ogs_cli_wheel, program)
args = ["%s.py" % program] + args args = ["%s.py" % program] + args
with push_argv(args), pytest.raises(SystemExit) as excinfo: with push_argv(args), pytest.raises(SystemExit) as excinfo:
func() func()
...@@ -18,6 +18,6 @@ def _run(program, args): ...@@ -18,6 +18,6 @@ def _run(program, args):
def test_binaries(): def test_binaries():
ignore_list = ["moveMeshNodes", "mpmetis", "tetgen"] # have no --version cli flag ignore_list = ["moveMeshNodes", "mpmetis", "tetgen"] # have no --version cli flag
for f in ogs.binaries_list: for f in ogs_cli_wheel.binaries_list:
if f not in ignore_list: if f not in ignore_list:
_run(f, ["--version"]) _run(f, ["--version"])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment