From: Denis Laxalde Date: Mon, 19 Apr 2021 13:28:03 +0000 (+0200) Subject: Change directory in tox's 'tests' environments X-Git-Tag: 3.0.dev0~63^2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0af7e6fba0f21d3577dd974272afbe8e27e582c9;p=thirdparty%2Fpsycopg.git Change directory in tox's 'tests' environments This avoids path manipulation and would help with the next commit (where current directory will matter). --- diff --git a/psycopg3/tox.ini b/psycopg3/tox.ini index 00152479f..94d2ef797 100644 --- a/psycopg3/tox.ini +++ b/psycopg3/tox.ini @@ -3,8 +3,9 @@ envlist = {3.6,3.7,3.8,3.9} isolated_build = True [testenv] +changedir = .. commands = - pytest ../tests {posargs} + pytest {posargs} passenv = PG* PSYCOPG3_TEST_DSN PYTEST_ADDOPTS PSYCOPG3_IMPL TRAVIS* extras = test diff --git a/psycopg3_c/tox.ini b/psycopg3_c/tox.ini index 1c6064425..523e24154 100644 --- a/psycopg3_c/tox.ini +++ b/psycopg3_c/tox.ini @@ -3,8 +3,9 @@ envlist = {3.6,3.7,3.8,3.9} isolated_build = True [testenv] +changedir = .. commands = - pytest ../tests {posargs} + pytest {posargs} passenv = PG* PSYCOPG3_TEST_DSN PYTEST_ADDOPTS PSYCOPG3_IMPL TRAVIS* deps = -e {toxinidir}/../psycopg3[test]