From b1d853c05de6edffcd9f1100dd0b549fec996dc8 Mon Sep 17 00:00:00 2001 From: archetipo Date: Tue, 21 Jul 2015 18:30:07 +0200 Subject: [PATCH] [FIX] test --- auto_backup/__openerp__.py | 4 +--- auto_backup/tests/test_auto_backup.py | 16 ---------------- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/auto_backup/__openerp__.py b/auto_backup/__openerp__.py index e51b28e38..6c5f5bad0 100644 --- a/auto_backup/__openerp__.py +++ b/auto_backup/__openerp__.py @@ -31,9 +31,7 @@ "category" : "Tools", "summary": "Backups data base", "depends" : ['base','email_template'], - "demo_xml" : [ - "data/backup_data.xml" - ], + "demo" : [], "data" : [ "view/bkp_conf_view.xml", "data/backup_data.xml", diff --git a/auto_backup/tests/test_auto_backup.py b/auto_backup/tests/test_auto_backup.py index a94b40584..8e61f6f0e 100644 --- a/auto_backup/tests/test_auto_backup.py +++ b/auto_backup/tests/test_auto_backup.py @@ -46,19 +46,3 @@ class TestsAutoBackup(common.TransactionCase): } ) self.assertEqual(this.host, 'localhost') - cronbk = self.cron_model.search([('name', '=', 'Backup scheduler')]) - import pdb;pdb.set_trace() - cronbk.write( - { - 'active': True, - 'doall': True - } - ) - filetime = ( - datetime.now() + timedelta(minutes=1) - ).strftime('%d_%m_%Y_%H_%M_%S') - - bkp_file = '%s_%s.dimp.zip' % ( - filetime, this.name) - file_path = os.path.join(this.bkp_dir, bkp_file) - self.assertEqual(os.path.isfile(file_path), True)