From 8b71340d3a4a0e27d415c4c2d35b95fd360c1e7c Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Fri, 19 Apr 2024 10:31:16 +0200 Subject: [PATCH] Added password for postgres case --- .github/workflows/modoboa.yml | 2 +- tests.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/modoboa.yml b/.github/workflows/modoboa.yml index 21c40def0..58602cbb6 100644 --- a/.github/workflows/modoboa.yml +++ b/.github/workflows/modoboa.yml @@ -107,7 +107,7 @@ jobs: pip install -r mysql-requirements.txt echo "DB=mysql" >> $GITHUB_ENV - name: Test with pytest - if: ${{ matrix.python-version != '3.10' || matrix.database != 'postgres' }} + if: ${{ matrix.python-version != '3.11' || matrix.database != 'postgres' }} run: | python ./tests.py cd test_project diff --git a/tests.py b/tests.py index dd7e9c022..d019872c6 100644 --- a/tests.py +++ b/tests.py @@ -19,7 +19,7 @@ class DeployTest(unittest.TestCase): dbport = PORT projname = "modoboa_test" dbuser = DB == "mysql" and "modoboa" or "postgres" - dbpassword = DB == "mysql" and "modoboa" or "" + dbpassword = DB == "mysql" and "modoboa" or "postgres" def setUp(self): self.workdir = tempfile.mkdtemp()