Browse Source

[FIX] flake8

pull/620/head
archetipo 9 years ago
committed by Dave Lasley
parent
commit
1ed3065031
  1. 10
      auto_backup/tests/test_auto_backup.py

10
auto_backup/tests/test_auto_backup.py

@ -19,13 +19,10 @@
# #
############################################################################## ##############################################################################
import base64
from openerp.tests import common from openerp.tests import common
from openerp.exceptions import except_orm, Warning
from openerp.modules.module import get_module_resource
import os
import time
from datetime import datetime, date, timedelta
from openerp.exceptions import except_orm
class TestsAutoBackup(common.TransactionCase): class TestsAutoBackup(common.TransactionCase):
@ -34,7 +31,6 @@ class TestsAutoBackup(common.TransactionCase):
self.abk_model = self.env["db.backup"] self.abk_model = self.env["db.backup"]
self.cron_model = self.env["ir.cron"] self.cron_model = self.env["ir.cron"]
def test_0(self): def test_0(self):
with self.assertRaises(except_orm): with self.assertRaises(except_orm):
self.abk_model.create({'name': 'abcd'}) self.abk_model.create({'name': 'abcd'})

Loading…
Cancel
Save