source: cows/trunk/cows/test/testapp/test.ini @ 4613

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/cows/trunk/cows/test/testapp/test.ini@4613
Revision 4613, 1.5 KB checked in by spascoe, 12 years ago (diff)

Improved testing for COWS.

To effectively test COWS you need a Pylons application. I've created a
mini pylons app in cows/test/testapp that is automatically wired into
the Pylons testing framework when you run "nosetests cows". See
cows/test/README.

Line 
1#
2# TestApp - Pylons testing environment configuration
3#
4# The %(here)s variable will be replaced with the parent directory of this file
5#
6[DEFAULT]
7debug = true
8# Uncomment and replace with the address which should receive any error reports
9#email_to = you@yourdomain.com
10smtp_server = localhost
11error_email_from = paste@localhost
12
13[server:main]
14use = egg:Paste#http
15host = 0.0.0.0
16port = 5000
17
18[app:main]
19use = egg:cows#testapp
20full_stack = true
21cache_dir = /tmp/cows_testapp/data
22beaker.session.key = testapp
23beaker.session.secret = somesecret
24
25# If you'd like to fine-tune the individual locations of the cache data dirs
26# for the Cache data, or the Session saves, un-comment the desired settings
27# here:
28#beaker.cache.data_dir = %(here)s/data/cache
29#beaker.session.data_dir = %(here)s/data/sessions
30
31# WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
32# Debug mode will enable the interactive debugging tool, allowing ANYONE to
33# execute malicious code after an exception is raised.
34#set debug = false
35
36
37# Logging configuration
38[loggers]
39keys = root, testapp
40
41[handlers]
42keys = console
43
44[formatters]
45keys = generic
46
47[logger_root]
48level = INFO
49handlers = console
50
51[logger_testapp]
52level = DEBUG
53handlers =
54qualname = testapp
55
56[handler_console]
57class = StreamHandler
58args = (sys.stderr,)
59level = NOTSET
60formatter = generic
61
62[formatter_generic]
63format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
64datefmt = %H:%M:%S
65
66# Add additional test specific configuration options as necessary.
Note: See TracBrowser for help on using the repository browser.