Skip to content

Commit

Permalink
Update test_pg_user_pass.py
Browse files Browse the repository at this point in the history
  • Loading branch information
FouziaTariq authored Nov 17, 2023
1 parent df6d609 commit 91121c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/profiles/postgres/test_pg_user_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ def test_connection_claiming() -> None:
assert not profile_mapping.can_claim_connection()

# also test when there's no schema
conn = Connection(**potential_values) # type: ignore
conn = Connection(**{k: v for k, v in potential_values.items() if k != 'schema'})
with patch("airflow.hooks.base.BaseHook.get_connection", return_value=conn):
profile_mapping = PostgresUserPasswordProfileMapping(conn, {})
profile_mapping = PostgresUserPasswordProfileMapping(conn, {"schema": None})
assert not profile_mapping.can_claim_connection()

# if we have them all, it should claim
Expand Down

0 comments on commit 91121c6

Please sign in to comment.