mirror of
https://github.com/sprockets/sprockets-postgres.git
synced 2025-04-13 01:11:02 -09:00
updated exception raising
This commit is contained in:
parent
970aabfdb4
commit
725fba8728
1 changed files with 0 additions and 6 deletions
6
tests.py
6
tests.py
|
@ -385,12 +385,6 @@ class RequestHandlerMixinTestCase(TestCase):
|
|||
self.assertEqual(response.code, 409)
|
||||
self.assertIn(b'Unique Violation', response.body)
|
||||
|
||||
@mock.patch('aiopg.cursor.Cursor.execute')
|
||||
def test_postgres_execute_unclassified(self, execute):
|
||||
execute.side_effect = errors.InvalidTextRepresentation()
|
||||
with self.assertRaises(psycopg2.errors.InvalidTextRepresentation):
|
||||
self.fetch('/execute?value=1')
|
||||
|
||||
@mock.patch('aiopg.cursor.Cursor.execute')
|
||||
def test_postgres_execute_error(self, execute):
|
||||
execute.side_effect = psycopg2.Error()
|
||||
|
|
Loading…
Add table
Reference in a new issue