Skip to content

Commit 16d53a6

Browse files
author
Grzegorz Marczynski
committed
Merge remote-tracking branch 'origin/11.0' into 12.0
2 parents 3eb0ac3 + 5c50f7b commit 16d53a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web_progress/tests/test_web_progress.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from odoo.tests import common
22
from odoo import exceptions, api, registry
33
from odoo.tools import mute_logger
4-
from psycopg2.errors import SyntaxError
4+
from psycopg2 import ProgrammingError
55
import uuid
66
import logging
77
from ..models.web_progress import last_report_time
@@ -142,7 +142,7 @@ def test_get_all_progress(self):
142142
self.assertEqual(res, [{'code': progress_code}])
143143
res = progress_obj.get_all_progress(0)
144144
self.assertEqual(res, [])
145-
with self.assertRaises(SyntaxError) as e:
145+
with self.assertRaises(ProgrammingError) as e:
146146
progress_obj.get_all_progress("0 SECOND' GROUP BY code; "
147147
"SELECT code, array_agg(state) FROM web_progress "
148148
"WHERE create_date > timezone('utc', now()) - INTERVAL '10")

0 commit comments

Comments
 (0)