Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/11.0' into 12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Grzegorz Marczynski committed Aug 10, 2023
2 parents 3eb0ac3 + 5c50f7b commit 16d53a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web_progress/tests/test_web_progress.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from odoo.tests import common
from odoo import exceptions, api, registry
from odoo.tools import mute_logger
from psycopg2.errors import SyntaxError
from psycopg2 import ProgrammingError
import uuid
import logging
from ..models.web_progress import last_report_time
Expand Down Expand Up @@ -142,7 +142,7 @@ def test_get_all_progress(self):
self.assertEqual(res, [{'code': progress_code}])
res = progress_obj.get_all_progress(0)
self.assertEqual(res, [])
with self.assertRaises(SyntaxError) as e:
with self.assertRaises(ProgrammingError) as e:
progress_obj.get_all_progress("0 SECOND' GROUP BY code; "
"SELECT code, array_agg(state) FROM web_progress "
"WHERE create_date > timezone('utc', now()) - INTERVAL '10")
Expand Down

0 comments on commit 16d53a6

Please sign in to comment.