Ejemplo n.º 1
0
    def setUp(cls):
        casa_mock.mock()

        settings._get_config = settings.get_config

        def fake_config():
            class FakeConfig(object):
                servers = ["127.0.0.1:9160"]
                username = "******"
                password = "******"
                connection_timeout = 42

            return FakeConfig()
        settings.get_config = fake_config
Ejemplo n.º 2
0
        def setUp(cls):
            fiveconfigure.debug_mode = True
            ztc.installPackage(collective.atcassandrastorage)
            fiveconfigure.debug_mode = False

            casa_mock.mock()

            settings._get_config = settings.get_config

            def fake_config():
                class FakeConfig(object):
                    servers = ["127.0.0.1:9160"]
                    username = "******"
                    password = "******"
                    connection_timeout = 42

                return FakeConfig()
            settings.get_config = fake_config