Use ternary operator instead of if-else-block
#814
Merged
Codecov / codecov/project
succeeded
Feb 10, 2026 in 1s
80.54% (target 0.00%)
View this Pull Request on Codecov
80.54% (target 0.00%)
Details
Codecov Report
✅ All modified and coverable lines are covered by tests.
@@ Coverage Diff @@
## infrahub-develop #814 +/- ##
====================================================
+ Coverage 80.33% 80.54% +0.21%
====================================================
Files 115 117 +2
Lines 9865 10209 +344
Branches 1504 1538 +34
====================================================
+ Hits 7925 8223 +298
- Misses 1419 1456 +37
- Partials 521 530 +9 | Files with missing lines | Coverage Δ | |
|---|---|---|
| infrahub_sdk/client.py | 72.88% <100.00%> (+0.88%) |
⬆️ |
| infrahub_sdk/ctl/cli_commands.py | 71.77% <100.00%> (+0.57%) |
⬆️ |
| infrahub_sdk/graphql/renderers.py | 92.77% <100.00%> (-0.09%) |
⬇️ |
| infrahub_sdk/node/node.py | 85.67% <100.00%> (+0.64%) |
⬆️ |
| infrahub_sdk/template/__init__.py | 96.74% <100.00%> (+1.39%) |
⬆️ |
🚀 New features to boost your workflow:
- ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
Loading