Skip to content

test: add unit tests for Ariadne decorators#23

Merged
nogueira-raphael merged 1 commit intomainfrom
test/ariadne-decorators-unit-tests
Feb 15, 2026
Merged

test: add unit tests for Ariadne decorators#23
nogueira-raphael merged 1 commit intomainfrom
test/ariadne-decorators-unit-tests

Conversation

@nogueira-raphael
Copy link
Copy Markdown
Owner

Summary

  • Add 37 unit tests for all functions in cacheql.adapters.ariadne.decorators
  • Bring coverage from 16% to 100%
  • Cover: configure_cache, cached_resolver, invalidates_cache, _build_cache_key, _get_type_name_from_func, _resolve_tags, _interpolate_string

Test plan

  • All 37 new unit tests pass (uv run pytest tests/unit/adapters/ariadne/ -v)
  • Full test suite passes (213 tests)
  • Coverage at 100% for cacheql.adapters.ariadne.decorators
  • Ruff lint passes
  • Mypy passes

Add 37 unit tests covering all functions in the Ariadne decorators
module, bringing coverage from 16% to 100%.

Tests cover: configure_cache, cached_resolver (cache hit/miss, custom
TTL, tags, custom keys), invalidates_cache (with/without tags,
interpolation), _build_cache_key, _get_type_name_from_func,
_resolve_tags, and _interpolate_string.
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.94%. Comparing base (6bd0e65) to head (d79051a).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #23      +/-   ##
==========================================
+ Coverage   80.64%   87.94%   +7.30%     
==========================================
  Files          33       33              
  Lines         904      904              
  Branches      136      136              
==========================================
+ Hits          729      795      +66     
+ Misses        152       87      -65     
+ Partials       23       22       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@nogueira-raphael nogueira-raphael merged commit fb88ebc into main Feb 15, 2026
7 checks passed
@nogueira-raphael nogueira-raphael deleted the test/ariadne-decorators-unit-tests branch February 15, 2026 11:55
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.

1 participant