示例#1
0
    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()
示例#2
0
    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()
示例#3
0
    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)
示例#4
0
 def setUp(self):
     self.proj = common.activate(['main'])
示例#5
0
 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'])
示例#6
0
 def setUp(self):
     self.proj = common.activate(['rename'])
示例#7
0
 def setUp(self):
     self.proj = common.activate(['main'])
     state = State()
     state.create(1)
     self.task_state = state.get_task_state(1)