aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2025-06-08 10:45:29 +0200
committerDaniel Schadt <kingdread@gmx.de>2025-06-08 10:45:29 +0200
commit0e0b63f08e6c5c52df5d12817f78333cca105154 (patch)
tree9e7a5cd6e5bf491d4b63530a8a19090015ab09fe
parentf95e1394883eb0e1c763b97e403df7c25a08501e (diff)
downloadfietsboek-0e0b63f08e6c5c52df5d12817f78333cca105154.tar.gz
fietsboek-0e0b63f08e6c5c52df5d12817f78333cca105154.tar.bz2
fietsboek-0e0b63f08e6c5c52df5d12817f78333cca105154.zip
fix postgres connection URL in tests
-rwxr-xr-xci/run_tests.sh3
-rw-r--r--tox.ini4
2 files changed, 5 insertions, 2 deletions
diff --git a/ci/run_tests.sh b/ci/run_tests.sh
index 1ba2836..adf69b7 100755
--- a/ci/run_tests.sh
+++ b/ci/run_tests.sh
@@ -33,7 +33,7 @@ case "$DB" in
"postgres")
setup_postgres
- sed -i 's|^sqlalchemy.url = .*$|sqlalchemy.url = postgresql://postgres:postgres@localhost/postgres"|' testing.ini
+ sed -i 's|^sqlalchemy.url = .*$|sqlalchemy.url = postgresql://postgres:postgres@localhost/postgres|' testing.ini
;;
*)
@@ -42,6 +42,7 @@ case "$DB" in
;;
esac
+pip install tox
setup_playwright
setup_redis
tox -e python -- --browser firefox
diff --git a/tox.ini b/tox.ini
index 17d6bdb..3fad742 100644
--- a/tox.ini
+++ b/tox.ini
@@ -11,7 +11,9 @@ envlist = python,pylint,pylint-tests,flake,mypy,black,isort
isolated_build = true
[testenv]
-deps = poetry
+deps =
+ poetry
+ psycopg2
skip_install = true
passenv =
TERM