Skip to content

Conversation

@beonde
Copy link
Member

@beonde beonde commented Jan 18, 2026

Summary

Fixes pytest warnings that appear in CI runs.

Changes

  1. Register custom pytest markers in pyproject.toml:

    • integration: marks tests as integration tests
    • slow: marks tests as slow
  2. Fix deprecation warnings in message.py:

    • Import AvailabilityScorer from legacy module directly (not the deprecated wrapper)
    • Remove unused TrustScorer import

Related

These warnings were appearing in capiscio-e2e-tests CI runs during SDK integration tests.

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.
Copilot AI review requested due to automatic review settings January 18, 2026 10:45
@github-actions
Copy link

✅ Documentation validation passed!

Unified docs will be deployed from capiscio-docs repo.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

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 integration and slow pytest markers in pyproject.toml to eliminate unknown marker warnings
  • Import AvailabilityScorer directly from the legacy module to avoid deprecation warnings
  • Remove unused TrustScorer import

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

@github-actions
Copy link

✅ Documentation validation passed!

Unified docs will be deployed from capiscio-docs repo.

@github-actions
Copy link

✅ All checks passed! Ready for review.

@github-actions
Copy link

✅ Integration tests passed! Server validation, BadgeKeeper, and gRPC tests all working.

@codecov
Copy link

codecov bot commented Jan 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@beonde beonde merged commit 6fb7fd3 into main Jan 18, 2026
13 checks passed
@beonde beonde deleted the fix/pytest-warnings branch January 18, 2026 10:57
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.

2 participants