Пример #1
0
 def setUp(self):
     setupLoader()
     self._loader = getLoader()
     self._loader.importLibraries()
     self.times = getTimes()
     self.times.init(self._loader,PatchEnvironment=True)
     self.messages = getComponent('yombo.gateway.lib.messages')
     self.messages.init(self._loader)
Пример #2
0
import pyximport

pyximport.install()
from yombo.lib.loader import setupLoader, getLoader


setupLoader()
_loader = getLoader()
_loader.importLibraries()
from yombo.core.helpers import getTimes, getComponent

print "**********************************************************************************************************************************************************************************"
print "**************************************HERE WE STARTING TESTS -- ALL ERRORS ABOVE(about reactor) DO NOT MATTER*********************************************************************"
times = getTimes()
times.init(_loader, PatchEnvironment=True)

messages = getComponent("yombo.gateway.lib.messages")
messages.init(_loader)

times.run_inner_tests()
moonrise = times.objRise(1, "Moon")  # 1 - we want the next moon rise
print moonrise


import os
from twisted.application import service, internet
from twisted.web import static, server


def getWebService():
    """