julen / pootle

Web-based translation and translation management tool

This URL has Read+Write access

julen (author)
Thu Aug 14 09:16:41 -0700 2008
commit  5b47b2fc4b2d24ca3065e8690126ab0c1e2a1565
tree    63982c99911b551ecbab713bce3418e5ad2dbbc1
parent  e03ed0b458352e4cc73becbb76430875edf70f42
pootle / test_init.py
100644 11 lines (8 sloc) 0.333 kb
1
2
3
4
5
6
7
8
9
10
11
from Pootle import pootle
 
def setup_module(module):
    """initialize global variables in the module"""
    parser = pootle.PootleOptionParser()
    options, args = parser.parse_args(["--servertype=dummy"])
    module.server = parser.getserver(options)
    # shortcuts to make tests easier
    module.potree = module.server.potree