]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Change directory in tox's 'tests' environments
authorDenis Laxalde <denis.laxalde@dalibo.com>
Mon, 19 Apr 2021 13:28:03 +0000 (15:28 +0200)
committerDenis Laxalde <denis.laxalde@dalibo.com>
Mon, 26 Apr 2021 13:56:11 +0000 (15:56 +0200)
This avoids path manipulation and would help with the next commit (where
current directory will matter).

psycopg3/tox.ini
psycopg3_c/tox.ini

index 00152479f3287007869d40f4f20cd0b3ee505a62..94d2ef7977ce62dd4a147ebb6bb7a3b3dda4374f 100644 (file)
@@ -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
 
index 1c6064425d1f3b9836abaf8f90b52c13ace00a20..523e2415490870351573007373b3f62468afc92f 100644 (file)
@@ -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]