From 5092c185f98ad97410978b5cfad114c1ff758377 Mon Sep 17 00:00:00 2001 From: Dmitry Kovalenko Date: Fri, 9 Jan 2026 23:59:53 +0300 Subject: [PATCH] [test] __init__.py files are added Also 1) run_tests3.sh: - [del] definition of PYTHONPATH. - run: flake8 . - run: python -m pytest 2) cleanup --- Dockerfile--alpine.tmpl | 1 + run_tests3.sh | 8 +++----- tests/__init__.py | 0 tests/units/__init__.py | 0 tests/units/exceptions/ExecUtilException/__init__.py | 0 tests/units/exceptions/__init__.py | 0 6 files changed, 4 insertions(+), 5 deletions(-) create mode 100644 tests/__init__.py create mode 100644 tests/units/__init__.py create mode 100644 tests/units/exceptions/ExecUtilException/__init__.py create mode 100644 tests/units/exceptions/__init__.py diff --git a/Dockerfile--alpine.tmpl b/Dockerfile--alpine.tmpl index 5666abd..f56501b 100644 --- a/Dockerfile--alpine.tmpl +++ b/Dockerfile--alpine.tmpl @@ -51,6 +51,7 @@ ENTRYPOINT sh -c " \ set -eux; \ echo HELLO FROM ENTRYPOINT; \ echo HOME DIR IS [`realpath ~/`]; \ +echo WORK DIR IS [$(pwd)]; \ ssh-keygen -t rsa -f ~/.ssh/id_rsa -q -N ''; \ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys; \ chmod 600 ~/.ssh/authorized_keys; \ diff --git a/run_tests3.sh b/run_tests3.sh index f89492f..c4486f0 100755 --- a/run_tests3.sh +++ b/run_tests3.sh @@ -1,7 +1,5 @@ #!/usr/bin/env bash -# Copyright (c) 2017-2025 Postgres Professional - set -eux # prepare python environment @@ -13,12 +11,12 @@ source "${VENV_PATH}/bin/activate" pip install -r tests/requirements.txt # install testgres' dependencies -export PYTHONPATH=$(pwd) +# export PYTHONPATH=$(pwd) # $PIP install . -flake8 +flake8 . -pytest -l -v -n 4 +python -m pytest -l -vvv -n 4 set +eux diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/units/__init__.py b/tests/units/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/units/exceptions/ExecUtilException/__init__.py b/tests/units/exceptions/ExecUtilException/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/units/exceptions/__init__.py b/tests/units/exceptions/__init__.py new file mode 100644 index 0000000..e69de29