chore: Update test setup such that it runs from project root.
[mailman-postorious.git] / example_project / test_settings.py
blob17252a48a6fd60becd60a69e4d53a1716a7a7e33
1 # -*- coding: utf-8 -*-
2 # Copyright (C) 1998-2022 by the Free Software Foundation, Inc.
4 # This file is part of Postorius.
6 # Postorius is free software: you can redistribute it and/or modify it under
7 # the terms of the GNU General Public License as published by the Free
8 # Software Foundation, either version 3 of the License, or (at your option)
9 # any later version.
11 # Postorius is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 # more details.
16 # You should have received a copy of the GNU General Public License along with
17 # Postorius. If not, see <http://www.gnu.org/licenses/>.
19 """
20 Django test settings for postorius project.
21 """
23 from .settings import *
25 ROOT_URLCONF = 'example_project.urls'
27 TESTING = True
29 # Mailman API credentials for testing
30 MAILMAN_REST_API_URL = 'http://localhost:9001'
31 MAILMAN_REST_API_USER = 'restadmin'
32 MAILMAN_REST_API_PASS = 'restpass'
35 LOGGING = {
36 'version': 1,
37 'disable_existing_loggers': False,
38 'handlers': {
39 'console': {
40 'class': 'logging.StreamHandler',
41 'formatter': 'verbose',
44 'loggers': {
45 'django': {
46 'handlers': ['console'],
47 'level': 'INFO',
49 'django.request': {
50 'handlers': ['console'],
51 'level': 'ERROR',
53 'postorius': {
54 'handlers': ['console'],
55 'level': 'INFO',
58 'formatters': {
59 'verbose': {
60 'format': '%(levelname)s %(asctime)s %(process)d %(name)s %(message)s'