Skip to content

Commit

Permalink
feat: add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joffreybienvenu-infrabel authored and robbydb88 committed Dec 15, 2023
1 parent 955446c commit 18f21cc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/providers/odbc/hooks/test_odbc.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,11 @@ def test_driver_extra_raises_warning_and_returns_default_driver_by_default(self,
assert "have supplied 'driver' via connection extra but it will not be used" in caplog.text
assert driver == "Blah driver"

def test_placeholder_config_from_extra(self):
conn_params = dict(extra=json.dumps(dict(placeholder="?")))
hook = self.get_hook(conn_params=conn_params)
assert hook.placeholder == "?"

def test_database(self):
hook = self.get_hook(hook_params=dict(database="abc"))
assert hook.database == "abc"
Expand Down

0 comments on commit 18f21cc

Please sign in to comment.