mirror of https://github.com/OCA/social.git
[FIX] mail_tracking: be closer to what Odoo does in a nodb environment
parent
20778cedce
commit
b8848c531d
|
@ -439,7 +439,7 @@ class TestMailTracking(TransactionCase):
|
||||||
controller.mail_tracking_open(db, tracking.id, False)
|
controller.mail_tracking_open(db, tracking.id, False)
|
||||||
|
|
||||||
def test_db_env_no_cr(self):
|
def test_db_env_no_cr(self):
|
||||||
http.request.cr = None
|
http.request.env = None
|
||||||
db = self.env.cr.dbname
|
db = self.env.cr.dbname
|
||||||
controller = MailTrackingController()
|
controller = MailTrackingController()
|
||||||
# Cast Cursor to Mock object to avoid raising 'Cursor not closed explicitly' log
|
# Cast Cursor to Mock object to avoid raising 'Cursor not closed explicitly' log
|
||||||
|
|
Loading…
Reference in New Issue