File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11from odoo .tests import common
22from odoo import exceptions , api , registry
33from odoo .tools import mute_logger
4- from psycopg2 . errors import SyntaxError
4+ from psycopg2 import ProgrammingError
55import uuid
66import logging
77from ..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" )
You can’t perform that action at this time.
0 commit comments