fix: resolve pytest warnings for deprecation and unknown marks#22
Merged
fix: resolve pytest warnings for deprecation and unknown marks#22
Conversation
1. Register 'integration' and 'slow' custom pytest markers in pyproject.toml 2. Import AvailabilityScorer from legacy module directly to avoid deprecation warning (we only use score_not_tested() method) 3. Remove unused TrustScorer import from message validator This eliminates pytest warnings in CI runs.
|
✅ Documentation validation passed!
|
There was a problem hiding this comment.
Pull request overview
This PR resolves pytest warnings that appear in CI runs by registering custom pytest markers and fixing deprecation warnings in the scoring module imports.
Changes:
- Register
integrationandslowpytest markers inpyproject.tomlto eliminate unknown marker warnings - Import
AvailabilityScorerdirectly from the legacy module to avoid deprecation warnings - Remove unused
TrustScorerimport
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| pyproject.toml | Adds marker registration to prevent pytest warnings for integration and slow test markers |
| capiscio_sdk/validators/message.py | Updates import to use legacy AvailabilityScorer directly, avoiding deprecation wrapper; removes unused TrustScorer import |
|
✅ Documentation validation passed!
|
|
✅ All checks passed! Ready for review. |
|
✅ Integration tests passed! Server validation, BadgeKeeper, and gRPC tests all working. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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
Fixes pytest warnings that appear in CI runs.
Changes
Register custom pytest markers in
pyproject.toml:integration: marks tests as integration testsslow: marks tests as slowFix deprecation warnings in
message.py:AvailabilityScorerfrom legacy module directly (not the deprecated wrapper)TrustScorerimportRelated
These warnings were appearing in capiscio-e2e-tests CI runs during SDK integration tests.