Skip to content

Fix tests when running with workflows=3.7#308

Merged
ndevenish merged 3 commits into
mainfrom
fix_tests_wf37
Jun 10, 2026
Merged

Fix tests when running with workflows=3.7#308
ndevenish merged 3 commits into
mainfrom
fix_tests_wf37

Conversation

@ndevenish

Copy link
Copy Markdown
Contributor

This constructed an always-truthy mock, which inadvertantly activated the OTEL pathways.

workflows 3.7's start_transport() reads config._opentelemetry and, if
truthy, constructs an OTLPSpanExporter. Because the test fixture uses
a MagicMock for the configuration, that attribute was a truthy
MagicMock and the exporter blew up on urlparse(MagicMock). Force it
to None so the OTEL path is skipped.
@codecov

codecov Bot commented Jun 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.51%. Comparing base (947723a) to head (2660bb8).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #308   +/-   ##
=======================================
  Coverage   81.51%   81.51%           
=======================================
  Files          31       31           
  Lines        5697     5697           
  Branches      324      324           
=======================================
  Hits         4644     4644           
  Misses        983      983           
  Partials       70       70           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ndevenish
ndevenish merged commit c1b9a7a into main Jun 10, 2026
11 checks passed
@ndevenish
ndevenish deleted the fix_tests_wf37 branch June 10, 2026 20:54
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