def test_database_backup_compress(self):
     database_backup()
     self.assertTrue(
         os.path.exists(
             os.path.join(settings.DATA_DIR, "backups", "database.sql.gz")
         )
     )
Esempio n. 2
0
 def test_database_backup_compress(self):
     database_backup()
     if settings.DATABASES['default'][
             'ENGINE'] == 'django.db.backends.postgresql':
         self.assertTrue(
             os.path.exists(
                 os.path.join(settings.DATA_DIR, "backups",
                              "database.sql.gz")))
Esempio n. 3
0
 def test_database_backup(self):
     database_backup()
     if settings.DATABASES["default"]["ENGINE"] == "django.db.backends.postgresql":
         self.assertTrue(
             os.path.exists(
                 os.path.join(settings.DATA_DIR, "backups", "database.sql")
             )
         )