test: add unit tests for Ariadne decorators#23
Merged
nogueira-raphael merged 1 commit intomainfrom Feb 15, 2026
Merged
Conversation
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 Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
cacheql.adapters.ariadne.decoratorsconfigure_cache,cached_resolver,invalidates_cache,_build_cache_key,_get_type_name_from_func,_resolve_tags,_interpolate_stringTest plan
uv run pytest tests/unit/adapters/ariadne/ -v)cacheql.adapters.ariadne.decorators