comparison tests.ini @ 459:7c978511c951

implemented basic (startup) nose test suite.
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 05 Sep 2010 16:20:29 +0200
parents
children 91292686c1ed
comparison
equal deleted inserted replaced
458:00f883abdb0c 459:7c978511c951
1 ################################################################################
2 ################################################################################
3 # pylons_app - Pylons environment configuration #
4 # #
5 # The %(here)s variable will be replaced with the parent directory of this file#
6 ################################################################################
7
8 [DEFAULT]
9 debug = true
10 ############################################
11 ## Uncomment and replace with the address ##
12 ## which should receive any error reports ##
13 ############################################
14 #email_to = admin@localhost
15 #smtp_server = mail.server.com
16 #error_email_from = paste_error@localhost
17 #smtp_username =
18 #smtp_password =
19 #error_message = 'mercurial crash !'
20
21 [server:main]
22 ##nr of threads to spawn
23 threadpool_workers = 5
24
25 ##max request before
26 threadpool_max_requests = 2
27
28 ##option to use threads of process
29 use_threadpool = true
30
31 use = egg:Paste#http
32 host = 127.0.0.1
33 port = 5000
34
35 [app:main]
36 use = egg:pylons_app
37 full_stack = true
38 static_files = true
39 lang=en
40 cache_dir = %(here)s/data
41
42 ####################################
43 ### BEAKER CACHE ####
44 ####################################
45 beaker.cache.data_dir=/%(here)s/data/cache/data
46 beaker.cache.lock_dir=/%(here)s/data/cache/lock
47 beaker.cache.regions=super_short_term,short_term,long_term
48 beaker.cache.long_term.type=memory
49 beaker.cache.long_term.expire=36000
50 beaker.cache.short_term.type=memory
51 beaker.cache.short_term.expire=60
52 beaker.cache.super_short_term.type=memory
53 beaker.cache.super_short_term.expire=10
54
55 ####################################
56 ### BEAKER SESSION ####
57 ####################################
58 ## Type of storage used for the session, current types are
59 ## “dbm”, “file”, “memcached”, “database”, and “memory”.
60 ## The storage uses the Container API
61 ##that is also used by the cache system.
62 beaker.session.type = file
63
64 beaker.session.key = hg-app
65 beaker.session.secret = g654dcno0-9873jhgfreyu
66 beaker.session.timeout = 36000
67
68 ##auto save the session to not to use .save()
69 beaker.session.auto = False
70
71 ##true exire at browser close
72 #beaker.session.cookie_expires = 3600
73
74
75 ################################################################################
76 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
77 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
78 ## execute malicious code after an exception is raised. ##
79 ################################################################################
80 #set debug = false
81
82 ##################################
83 ### LOGVIEW CONFIG ###
84 ##################################
85 logview.sqlalchemy = #faa
86 logview.pylons.templating = #bfb
87 logview.pylons.util = #eee
88
89 #########################################################
90 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
91 #########################################################
92 sqlalchemy.db1.url = sqlite:///%(here)s/test.db
93 #sqlalchemy.db1.echo = False
94 #sqlalchemy.db1.pool_recycle = 3600
95 sqlalchemy.convert_unicode = true
96
97 ################################
98 ### LOGGING CONFIGURATION ####
99 ################################
100 [loggers]
101 keys = root, routes, pylons_app, sqlalchemy
102
103 [handlers]
104 keys = console
105
106 [formatters]
107 keys = generic,color_formatter
108
109 #############
110 ## LOGGERS ##
111 #############
112 [logger_root]
113 level = ERROR
114 handlers = console
115
116 [logger_routes]
117 level = ERROR
118 handlers = console
119 qualname = routes.middleware
120 # "level = DEBUG" logs the route matched and routing variables.
121
122 [logger_pylons_app]
123 level = ERROR
124 handlers = console
125 qualname = pylons_app
126 propagate = 0
127
128 [logger_sqlalchemy]
129 level = ERROR
130 handlers = console
131 qualname = sqlalchemy.engine
132 propagate = 0
133
134 ##############
135 ## HANDLERS ##
136 ##############
137
138 [handler_console]
139 class = StreamHandler
140 args = (sys.stderr,)
141 level = NOTSET
142 formatter = color_formatter
143
144 ################
145 ## FORMATTERS ##
146 ################
147
148 [formatter_generic]
149 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
150 datefmt = %Y-%m-%d %H:%M:%S
151
152 [formatter_color_formatter]
153 class=pylons_app.lib.colored_formatter.ColorFormatter
154 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
155 datefmt = %Y-%m-%d %H:%M:%S