Skip to content

Commit

Permalink
test the default case
Browse files Browse the repository at this point in the history
  • Loading branch information
leoschwarz committed Feb 11, 2025
1 parent 436415b commit 0d65af7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/bfabric_cli/test_cli_api_read.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ def sample_results():
class TestPerformQuery:
def test_perform_query_basic(self, mock_client, mock_console):
# Arrange
params = Params(endpoint="resource", query=[("status", "active")], columns=["id", "name"], limit=10)
params = Params(endpoint="resource", query=[("status", "active")])
mock_client.read.return_value = ResultContainer([{"id": 1, "name": "Test"}])

# Act
results = perform_query(params, mock_client, mock_console)

# Assert
mock_client.read.assert_called_once_with(endpoint="resource", obj={"status": "active"}, max_results=10)
mock_client.read.assert_called_once_with(endpoint="resource", obj={"status": "active"}, max_results=100)
assert len(results) == 1
assert results[0]["id"] == 1

Expand Down

0 comments on commit 0d65af7

Please sign in to comment.