Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
betodealmeida committed Apr 29, 2024
1 parent 9d490c8 commit 35739d5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/db/test_cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ def test_apply_parameters(self):
apply_parameters("SELECT %(key)s", {"key": False}), "SELECT FALSE"
)

self.assertEqual(
apply_parameters("SELECT * FROM t WHERE name LIKE '%%a'", None),
"SELECT * FROM t WHERE name LIKE '%a'",
)


if __name__ == "__main__":
unittest.main()

0 comments on commit 35739d5

Please sign in to comment.