Skip to content

Remove duplicated RTPProtocol tests#11

Merged
codingjoe merged 2 commits intotranscribe-callfrom
copilot/sub-pr-8
Mar 9, 2026
Merged

Remove duplicated RTPProtocol tests#11
codingjoe merged 2 commits intotranscribe-callfrom
copilot/sub-pr-8

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 9, 2026

TestRTPProtocol in tests/test_rtp.py contained two sets of effectively identical tests for rtp_header_size and datagram_received behavior, differing only in fixture style and naming.

Changes

  • Removed the first (inferior) set of RTPProtocol tests that used hardcoded raw byte literals:
    • test_rtp_header_size__is_class_attr
    • test_datagram_received__forwards_audio
    • test_datagram_received__skips_short_packet
    • test_datagram_received__skips_exact_header_size
  • Kept the canonical set that uses the make_rtp_packet() factory helper, which produces more readable and maintainable assertions.

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Copilot AI changed the title [WIP] Work in progress on call transcription feedback Remove duplicated RTPProtocol tests Mar 9, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.85%. Comparing base (a4dc96d) to head (148ddc1).
⚠️ Report is 2 commits behind head on transcribe-call.

Additional details and impacted files
@@               Coverage Diff                @@
##           transcribe-call      #11   +/-   ##
================================================
  Coverage            95.85%   95.85%           
================================================
  Files                   11       11           
  Lines                  531      531           
================================================
  Hits                   509      509           
  Misses                  22       22           

☔ 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.

@codingjoe codingjoe marked this pull request as ready for review March 9, 2026 21:24
Copilot AI review requested due to automatic review settings March 9, 2026 21:24
@codingjoe codingjoe merged commit dc771dd into transcribe-call Mar 9, 2026
21 checks passed
@codingjoe codingjoe deleted the copilot/sub-pr-8 branch March 9, 2026 21:24
Copy link
Copy Markdown

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

Removes duplicated RTPProtocol unit tests in tests/test_rtp.py, keeping the more maintainable/consistent versions that use the make_rtp_packet() helper.

Changes:

  • Deleted the redundant TestRTPProtocol test methods that used hardcoded raw byte literals.
  • Kept the existing “canonical” TestRTPProtocol tests that cover the same behaviors using make_rtp_packet().

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

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.

3 participants