Skip to content

Commit

Permalink
Update UT to use assert_called_once_with
Browse files Browse the repository at this point in the history
  • Loading branch information
awdavidson authored Sep 24, 2024
1 parent 86077b9 commit 7a64498
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/catalog/test_hive.py
Original file line number Diff line number Diff line change
Expand Up @@ -1218,8 +1218,8 @@ def test_create_hive_client_multiple_uris():

client = HiveCatalog._create_hive_client(properties)
assert mock_hive_client.call_count == 2
mock_hive_client.assert_any_call("thrift://localhost:10000", "user")
mock_hive_client.assert_any_call("thrift://localhost:10001", "user")
mock_hive_client.assert_called_once_with("thrift://localhost:10000", "user")
mock_hive_client.assert_called_once_with("thrift://localhost:10001", "user")
assert client is not None

def test_create_hive_client_failure():
Expand Down

0 comments on commit 7a64498

Please sign in to comment.