Home | Trees | Indices | Help |
---|
|
1 #!/usr/bin/python 2 # -*- coding: utf-8 -*- 3 4 import py 5 import textwrap 6 import logging 7 8 #def pytest_addoption(parser): 9 #parser.addoption("--checkremote", dest="checkremote", 10 #help="run tests that require network access", 11 #action="store_true", default=False) 1225 26 #def makeconfig(self, **kwargs): 27 #from myscan.config import Config 28 #p = self.tmpdir.join("test.ini") 29 #lines = ["[myscan]"] 30 #for key, value in kwargs.items(): 31 #lines.append("%s = %s" % (key, value)) 32 #p.write("\n".join(lines)) 33 #return Config(str(p)) 34 35 #def writefile(self, basename, source): 36 #p = self.tmpdir.join(basename) 37 #p.write(textwrap.dedent(source)) 38 #return p 39 4615 request.config.basetemp = u'./test/tmp' 16 self.tmpdir = request.getfuncargvalue("tmpdir") 17 from xmlgetter.controller import SyncController 18 self.controller = SyncController() 19 import xmlgetter.appLogging 20 self.logfilename = str(self.tmpdir.join('test.log')) 21 xmlgetter.appLogging.LOG_FILENAME = self.logfilename 22 xmlgetter.appLogging.LOG_LEVEL = logging.DEBUG 23 xmlgetter.appLogging.LOG_ROLLOVER_SIZE = 10485760 24 self.logger = xmlgetter.appLogging.getLogger(u'test')
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Thu Sep 16 13:42:04 2010 | http://epydoc.sourceforge.net |