From 0af7e6fba0f21d3577dd974272afbe8e27e582c9 Mon Sep 17 00:00:00 2001 From: Denis Laxalde Date: Mon, 19 Apr 2021 15:28:03 +0200 Subject: [PATCH] Change directory in tox's 'tests' environments This avoids path manipulation and would help with the next commit (where current directory will matter). --- psycopg3/tox.ini | 3 ++- psycopg3_c/tox.ini | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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] -- 2.47.2