From 994792f8d47c51019b392f7b64e4f4d14dd46cf6 Mon Sep 17 00:00:00 2001 From: ligerlac Date: Fri, 28 Jul 2023 17:41:24 +0200 Subject: [PATCH] add optional test settings, remove unneeded folder --- .github/workflows/backend-client-functional-tests.yml | 1 - nopayloaddb/nopayloaddb/settings.py | 0 nopayloaddb/settings.py | 3 +++ nopayloaddb/test_settings.py | 3 +++ 4 files changed, 6 insertions(+), 1 deletion(-) delete mode 100644 nopayloaddb/nopayloaddb/settings.py create mode 100644 nopayloaddb/test_settings.py diff --git a/.github/workflows/backend-client-functional-tests.yml b/.github/workflows/backend-client-functional-tests.yml index 94e0268..567e5d4 100644 --- a/.github/workflows/backend-client-functional-tests.yml +++ b/.github/workflows/backend-client-functional-tests.yml @@ -12,7 +12,6 @@ jobs: run: | cd nopayloaddb/ docker-compose up --build -d - docker-compose logs -f & - name: Check out client-side repository uses: actions/checkout@v3 diff --git a/nopayloaddb/nopayloaddb/settings.py b/nopayloaddb/nopayloaddb/settings.py deleted file mode 100644 index e69de29..0000000 diff --git a/nopayloaddb/settings.py b/nopayloaddb/settings.py index 1f90de4..bc84ce8 100644 --- a/nopayloaddb/settings.py +++ b/nopayloaddb/settings.py @@ -90,6 +90,9 @@ 'class': 'logging.FileHandler', 'filename': '{}/django-{}.log'.format(LOGPATH, HOSTNAME), }, + 'console': { + 'class': 'logging.StreamHandler', + } }, 'loggers': { 'django': { diff --git a/nopayloaddb/test_settings.py b/nopayloaddb/test_settings.py new file mode 100644 index 0000000..8ebb54f --- /dev/null +++ b/nopayloaddb/test_settings.py @@ -0,0 +1,3 @@ +from .settings import * + +LOGGING['loggers']['django']['handlers'].append('console')