mirror of
https://github.com/sprockets/sprockets-postgres.git
synced 2025-04-10 09:21:04 -09:00
added resp body check back
This commit is contained in:
parent
9a833e3178
commit
9a2bd07468
1 changed files with 1 additions and 0 deletions
1
tests.py
1
tests.py
|
@ -412,6 +412,7 @@ class RequestHandlerMixinTestCase(TestCase):
|
|||
execute.side_effect = psycopg2.Error()
|
||||
response = self.fetch('/execute?value=1')
|
||||
self.assertEqual(response.code, 500)
|
||||
self.assertIn(b'Database Error', response.body)
|
||||
|
||||
@mock.patch('aiopg.cursor.Cursor.fetchone')
|
||||
def test_postgres_programming_error(self, fetchone):
|
||||
|
|
Loading…
Add table
Reference in a new issue