Skip to content

Commit

Permalink
Use EXASOL_VERSION in pytest_itde_test.py [run all tests]
Browse files Browse the repository at this point in the history
  • Loading branch information
tkilias committed Jun 28, 2023
1 parent ec773f1 commit 5415844
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/integration/pytest_itde_test.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
from inspect import cleandoc
from itertools import chain

Expand Down Expand Up @@ -35,7 +36,11 @@ def test_itde_smoke_test(itde):
)
def test_itde_smoke_test(make_test_files, pytester, files):
make_test_files(pytester, files)
result = pytester.runpytest()
cmdargs = {}
if "EXASOL_VERSION" in os.environ:
cmdargs = {"--itde-db-version": os.environ["EXASOL_VERSION"]}
args = chain.from_iterable(cmdargs.items())
result = pytester.runpytest(*args)
assert result.ret == pytest.ExitCode.OK


Expand Down

0 comments on commit 5415844

Please sign in to comment.