Show only member and non-member roles under susbcriptions of a user.
[mailman-postorious.git] / example_project / test_settings.py
blob2c52d52680999dafaac0e76d07ea50f7a41ed352
1 # -*- coding: utf-8 -*-
2 # Copyright (C) 1998-2021 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 *
26 TESTING = True
28 # Mailman API credentials for testing
29 MAILMAN_REST_API_URL = 'http://localhost:9001'
30 MAILMAN_REST_API_USER = 'restadmin'
31 MAILMAN_REST_API_PASS = 'restpass'
34 LOGGING = {
35 'version': 1,
36 'disable_existing_loggers': False,
37 'handlers': {
38 'console': {
39 'class': 'logging.StreamHandler',
40 'formatter': 'verbose',
43 'loggers': {
44 'django': {
45 'handlers': ['console'],
46 'level': 'INFO',
48 'django.request': {
49 'handlers': ['console'],
50 'level': 'ERROR',
52 'postorius': {
53 'handlers': ['console'],
54 'level': 'INFO',
57 'formatters': {
58 'verbose': {
59 'format': '%(levelname)s %(asctime)s %(process)d %(name)s %(message)s'