Skip to content

Commit

Permalink
Fix DB test on altered error log
Browse files Browse the repository at this point in the history
  • Loading branch information
bh2smith committed Dec 3, 2024
1 parent d0a1f2d commit e035ceb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/unit/sources_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ def test_invalid_query_string(self):
db_url=os.environ["DB_URL"],
query_string="SELECT * FROM does_not_exist",
)
self.assertEqual("Config for PostgresSource is invalid", str(context.exception))
self.assertEqual(
"Config for PostgresSource is invalid. See ERROR log for details.",
str(context.exception),
)

def test_invalid_connection_string(self):
with self.assertRaises(sqlalchemy.exc.ArgumentError) as context:
Expand Down

0 comments on commit e035ceb

Please sign in to comment.