Skip to content

Conversation

@vhaasteren
Copy link
Member

When packages write tests in their test suite, sometimes Mock objects are used instead of libstempo/PINT pulsars. Or perhaps there are other reasons to not pass a libstempo/PINT object. Then Enterprise could still make a PintPulsar or a Tempo2Pulsar object if we were to use duck-typing. See #424

This PR updates it. No functionality is changed. Just a change from 'isinstance' to a duck-typing indicator function

@vhaasteren vhaasteren self-assigned this Oct 21, 2025
@vhaasteren vhaasteren changed the base branch from master to dev October 21, 2025 12:10
@vhaasteren vhaasteren marked this pull request as draft October 21, 2025 12:10
@codecov
Copy link

codecov bot commented Oct 21, 2025

Codecov Report

❌ Patch coverage is 60.00000% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 72.68%. Comparing base (3668246) to head (b2c7e47).

Files with missing lines Patch % Lines
enterprise/pulsar.py 60.00% 4 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##              dev     #425      +/-   ##
==========================================
+ Coverage   72.61%   72.68%   +0.06%     
==========================================
  Files          13       13              
  Lines        3407     3412       +5     
==========================================
+ Hits         2474     2480       +6     
+ Misses        933      932       -1     
Files with missing lines Coverage Δ
enterprise/pulsar.py 29.66% <60.00%> (+0.89%) ⬆️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3668246...b2c7e47. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@vhaasteren vhaasteren marked this pull request as ready for review October 21, 2025 15:31
@vhaasteren vhaasteren linked an issue Oct 21, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No duck-typing to determine pulsar object

1 participant