julen / pootle

Web-based translation and translation management tool

This URL has Read+Write access

julen (author)
Thu Aug 14 10:47:47 -0700 2008
commit  d6d4ecdb164c4a0251d376483f5f83741d3253fe
tree    cfee77c9f5af877950fe7ca4441e54a604cad69f
parent  297cfa1a6503925db79f4f88f8f367099a5966a4
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