def setUp(self):
        self.host_api = HostAPI()
        self.host_api.request = MagicMock()
        self.instance = InstanceFactory.create()

        self.instance.databaseinfra.databases.add(
            DatabaseFactory.create(databaseinfra=self.instance.databaseinfra))
    def setUp(self):
        self.host_api = HostAPI()
        self.host_api.request = MagicMock()
        self.instance = InstanceFactory.create()

        self.instance.databaseinfra.databases.add(
            DatabaseFactory.create(databaseinfra=self.instance.databaseinfra)
        )
示例#3
0
 def setUp(self):
     self.database = DatabaseFactory.create(
         databaseinfra__engine__engine_type__name='redis'
     )