Exemple #1
0
 def setUp(self):
     self.command = DbbackupCommand()
     self.command.database = TEST_DATABASE['NAME']
     self.command.dbcommands = DBCommands(TEST_DATABASE)
     self.command.storage = FakeStorage()
     self.command.clean = True
     self.command.clean_keep = 1
     self.command.stdout = DEV_NULL
 def setUp(self):
     self.command = DbbackupCommand()
     self.command.database = TEST_DATABASE['NAME']
     self.command.storage = FakeStorage()
     self.command.stdout = DEV_NULL
     self.command.filename = None
     self.command.path = None
     self.command.connector = get_connector('default')
 def setUp(self):
     self.command = DbbackupCommand()
     self.command.servername = 'foo-server'
     self.command.encrypt = False
     self.command.compress = False
     self.command.dbcommands = MongoDBCommands(TEST_MONGODB)
     self.command.storage = FakeStorage()
     self.command.stdout = DEV_NULL
 def setUp(self):
     self.command = DbbackupCommand()
     self.command.database = TEST_DATABASE['NAME']
     self.command.dbcommands = DBCommands(TEST_DATABASE)
     self.command.storage = FakeStorage()
     self.command.stdout = DEV_NULL
     self.command.filename = None
     self.command.path = None
 def setUp(self):
     if six.PY3:
         self.skipTest("Compression isn't implemented in Python3")
     open(TEST_DATABASE['NAME'], 'a+b').close()
     self.command = DbbackupCommand()
     self.command.database = TEST_DATABASE['NAME']
     self.command.dbcommands = DBCommands(TEST_DATABASE)
     self.command.storage = FakeStorage()
     self.command.stdout = DEV_NULL
 def setUp(self):
     self.command = DbbackupCommand()
     self.command.servername = 'foo-server'
     self.command.encrypt = False
     self.command.compress = False
     self.command.storage = FakeStorage()
     self.command.stdout = DEV_NULL
     self.command.filename = None
     self.command.path = None
     self.command.connector = get_connector('default')
Exemple #7
0
 def setUp(self):
     open(TEST_DATABASE['NAME'], 'a+b').close()
     self.command = DbbackupCommand()
     self.command.servername = 'foo-server'
     self.command.encrypt = False
     self.command.compress = False
     self.command.database = TEST_DATABASE['NAME']
     self.command.dbcommands = DBCommands(TEST_DATABASE)
     self.command.storage = FakeStorage()
     self.command.stdout = DEV_NULL
     open(TEST_DATABASE['NAME']).close()
 def setUp(self):
     self.command = DbbackupCommand()
     self.command.servername = 'foo-server'
     self.command.encrypt = False
     self.command.compress = False
     self.command.database = TEST_DATABASE['NAME']
     self.command.storage = FakeStorage()
     self.command.connector = get_connector()
     self.command.stdout = DEV_NULL
     self.command.filename = None
     self.command.path = None