当前位置: 首页>>代码示例>>Python>>正文


Python RunMixin.setUp方法代码示例

本文整理汇总了Python中buildbot.test.runutils.RunMixin.setUp方法的典型用法代码示例。如果您正苦于以下问题:Python RunMixin.setUp方法的具体用法?Python RunMixin.setUp怎么用?Python RunMixin.setUp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在buildbot.test.runutils.RunMixin的用法示例。


在下文中一共展示了RunMixin.setUp方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: setUp

# 需要导入模块: from buildbot.test.runutils import RunMixin [as 别名]
# 或者: from buildbot.test.runutils.RunMixin import setUp [as 别名]
 def setUp(self):
     RunMixin.setUp(self)
     self.master.loadConfig(config_1)
     self.master.startService()
     d = self.connectSlave(["b1"])
     d.addCallback(lambda res: self.connectSlave(["b1"], "bot2"))
     return d
开发者ID:gescalante,项目名称:buildbot,代码行数:9,代码来源:test_slaves.py

示例2: setUp

# 需要导入模块: from buildbot.test.runutils import RunMixin [as 别名]
# 或者: from buildbot.test.runutils.RunMixin import setUp [as 别名]
 def setUp(self):
     warnings.filterwarnings("ignore", category=DeprecationWarning)
     RunMixin.setUp(self)
     self.master.loadConfig(geturl_config)
     self.master.startService()
     d = self.connectSlave(["b1"])
     return d
开发者ID:pythonologist,项目名称:buildbot,代码行数:9,代码来源:test_web.py

示例3: setUp

# 需要导入模块: from buildbot.test.runutils import RunMixin [as 别名]
# 或者: from buildbot.test.runutils.RunMixin import setUp [as 别名]
 def setUp(self):
     RunMixin.setUp(self)
     self.master.loadConfig(config_1)
     self.master.startService()
     d = self.connectSlave(["slowpass", "fastfail", "fastpass",
                            "b3", "b4", "b5"])
     return d
开发者ID:abyx,项目名称:buildbot,代码行数:9,代码来源:test_dependencies.py

示例4: boto_setUp1

# 需要导入模块: from buildbot.test.runutils import RunMixin [as 别名]
# 或者: from buildbot.test.runutils.RunMixin import setUp [as 别名]
 def boto_setUp1(self):
     # debugging
     #import twisted.internet.base
     #twisted.internet.base.DelayedCall.debug = True
     # debugging
     RunMixin.setUp(self)
     self.boto = boto = Boto(self)
     if 'boto' not in sys.modules:
         sys.modules['boto'] = boto
         sys.modules['boto.exception'] = boto.exception
     if 'buildbot.ec2buildslave' in sys.modules:
         sys.modules['buildbot.ec2buildslave'].boto = boto
开发者ID:MahatmaManic,项目名称:buildbot,代码行数:14,代码来源:test_ec2buildslave.py

示例5: setUp

# 需要导入模块: from buildbot.test.runutils import RunMixin [as 别名]
# 或者: from buildbot.test.runutils.RunMixin import setUp [as 别名]
 def setUp(self):
     N = 'test_builder'
     RunMixin.setUp(self)
     self.reqs = [BuildRequest("forced build", SourceStamp(), N)
                  for i in range(4)]
     self.events = []
     for i in range(4):
         self.reqs[i].number = i
         self.reqs[i].events = self.events
     d = self.master.loadConfig(self.config)
     d.addCallback(lambda res: self.master.startService())
     d.addCallback(lambda res: self.connectSlaves(["bot1", "bot2"],
                                                  ["excl_A", "excl_B",
                                                   "count_A", "count_B"]))
     return d
开发者ID:abyx,项目名称:buildbot,代码行数:17,代码来源:test_locks.py

示例6: setUp

# 需要导入模块: from buildbot.test.runutils import RunMixin [as 别名]
# 或者: from buildbot.test.runutils.RunMixin import setUp [as 别名]
    def setUp(self):
        RunMixin.setUp(self)
        # verify that disconnecting the slave during a build properly
        # terminates the build
        m = self.master
        s = self.status
        c = self.control

        m.loadConfig(config_2)
        m.readConfig = True
        m.startService()

        self.failUnlessEqual(s.getBuilderNames(), ["dummy", "testdummy"])
        self.s1 = s1 = s.getBuilder("dummy")
        self.failUnlessEqual(s1.getName(), "dummy")
        self.failUnlessEqual(s1.getState(), ("offline", []))
        self.failUnlessEqual(s1.getCurrentBuilds(), [])
        self.failUnlessEqual(s1.getLastFinishedBuild(), None)
        self.failUnlessEqual(s1.getBuild(-1), None)

        d = self.connectSlaveFastTimeout()
        d.addCallback(self._setup_disconnect2_1)
        return d
开发者ID:gescalante,项目名称:buildbot,代码行数:25,代码来源:test_run.py

示例7: setUp

# 需要导入模块: from buildbot.test.runutils import RunMixin [as 别名]
# 或者: from buildbot.test.runutils.RunMixin import setUp [as 别名]
 def setUp(self):
   self._db = connection.creation.create_test_db()
   return RunMixin.setUp(self)
开发者ID:Pike,项目名称:locale-inspector,代码行数:5,代码来源:django_utils.py

示例8: setUp

# 需要导入模块: from buildbot.test.runutils import RunMixin [as 别名]
# 或者: from buildbot.test.runutils.RunMixin import setUp [as 别名]
 def setUp(self):
     RunMixin.setUp(self)
     self.master.loadConfig(version_config)
     self.master.startService()
     d = self.connectSlave(["quick"])
     return d
开发者ID:gescalante,项目名称:buildbot,代码行数:8,代码来源:test_steps.py


注:本文中的buildbot.test.runutils.RunMixin.setUp方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。