File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,9 @@ def purge(self):
7272 )
7373
7474 self .logger .info ("Dropping table %s" , line .name )
75- self .env .cr .execute ("DROP TABLE %s CASCADE" , (IdentifierAdapter (line .name ),))
75+ self .env .cr .execute (
76+ "DROP TABLE %s CASCADE" , (IdentifierAdapter (line .name ),)
77+ )
7678 line .write ({"purged" : True })
7779 return True
7880
Original file line number Diff line number Diff line change 33from contextlib import contextmanager
44
55import odoo
6- from odoo .modules . registry import Registry
7- from odoo .tests .common import tagged , TransactionCase
6+ from odoo .tests import common
7+ from odoo .tests .common import TransactionCase , tagged
88
99
1010@contextmanager
@@ -13,13 +13,12 @@ def new_rollbacked_env():
1313 uid = odoo .SUPERUSER_ID
1414 cr = registry .cursor ()
1515 try :
16- yield api .Environment (cr , uid , {})
16+ yield odoo . api .Environment (cr , uid , {})
1717 finally :
1818 cr .rollback () # we shouldn't have to commit anything
1919 cr .close ()
2020
2121
22-
2322# Use post_install to get all models loaded more info: odoo/odoo#13458
2423@tagged ("post_install" , "-at_install" )
2524class Common (TransactionCase ):
You can’t perform that action at this time.
0 commit comments