Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to use filters in the SDK client's count method #232

Merged
merged 2 commits into from
Jan 13, 2025

Conversation

wvandeun
Copy link
Contributor

No description provided.

@wvandeun wvandeun self-assigned this Jan 10, 2025
@wvandeun wvandeun changed the title Ad possibility to use filters in the SDK client's count method Add possibility to use filters in the SDK client's count method Jan 10, 2025
Copy link

codecov bot commented Jan 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

@@           Coverage Diff            @@
##           develop     #232   +/-   ##
========================================
  Coverage    68.70%   68.71%           
========================================
  Files           82       82           
  Lines         7525     7527    +2     
  Branches      1392     1392           
========================================
+ Hits          5170     5172    +2     
  Misses        1981     1981           
  Partials       374      374           
Flag Coverage Δ
integration-tests 12.91% <50.00%> (+0.06%) ⬆️
python-3.10 44.26% <100.00%> (+0.01%) ⬆️
python-3.11 44.26% <100.00%> (+0.01%) ⬆️
python-3.12 44.26% <100.00%> (+0.01%) ⬆️
python-3.13 44.26% <100.00%> (+0.01%) ⬆️
python-3.9 44.26% <100.00%> (+0.01%) ⬆️
python-filler-3.12 23.76% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
infrahub_sdk/client.py 66.97% <100.00%> (+0.07%) ⬆️

@@ -83,6 +83,16 @@ async def test_method_count(clients, mock_query_repository_count, client_type):
assert count == 5


@pytest.mark.parametrize("client_type", client_types)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this test is really checking anything since the payload is static
ideally we should add an integration tests for it

@wvandeun wvandeun requested a review from dgarros January 13, 2025 08:49
@wvandeun wvandeun merged commit 6a00e5e into develop Jan 13, 2025
14 checks passed
@wvandeun wvandeun deleted the wvd-20240110-add-filters-for-count-method branch January 13, 2025 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants