def withFixture(self): common.activate({'main': ['basic']}) with traad.app.bind_to_project(common.activated_path('main')) as self.traad_app: self.app = webtest.TestApp(self.traad_app) yield common.deactivate()
def withFixture(self): common.activate({'main': ['basic']}) with traad.app.bind_to_project( common.activated_path('main')) as self.traad_app: self.app = webtest.TestApp(self.traad_app) yield common.deactivate()
def setUp(self): common.activate({'main': ['basic']}) self.host = 'localhost' self.port = '9752' self.server_proc = subprocess.Popen( ['python', '-m', 'traad.server', '-p', str(self.port), common.activated_path('main')], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) wait_for_server(self.host, self.port)
def setUp(self): self.proj = common.activate(['main'])
def setUp(self): self.state = State() self.task_id = 1 self.state.create(self.task_id) self.task_state = self.state.get_task_state(self.task_id) self.proj = common.activate(['main', 'cross'])
def setUp(self): self.proj = common.activate(['rename'])
def setUp(self): self.proj = common.activate(['main']) state = State() state.create(1) self.task_state = state.get_task_state(1)