示例#1
0
    def setUpClass(cls):
        start_redis_server()

        cls._meta = MetaProxy()
        cls._mon = MonProxy()

        cls._meta.error = MagicMock()
    def setUpClass(cls):
        class DummyParent(QWidget):
            def createCtrlWidget(self, widget):
                pass

        cls._dummy = DummyParent()

        start_redis_server()
示例#3
0
 def setUpClass(cls):
     cls._port = 6390
     # use a port that is not used in other unittests
     start_redis_server('127.0.0.1', cls._port)
    def setUpClass(cls):
        start_redis_server()

        cls._meta = MetaProxy()