Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addition of pytest case for not None values for frames and start/stop/step #4769

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

talagayev
Copy link
Member

@talagayev talagayev commented Oct 27, 2024

Fixes #4648

Changes made in this Pull Request:

  • Added a pytest case in test_base.py to cover the case where frames and start/stop/step are both specified as not None, leading to an ValueError

PR Checklist

  • Tests?
  • Docs?
  • CHANGELOG updated?
  • Issue raised/referenced?

Developers certificate of origin


📚 Documentation preview 📚: https://mdanalysis--4769.org.readthedocs.build/en/4769/

Added pytest case where both frames and start/stop/step are present to raise valueerror
Updated changelog to add coverage of raise error case where frames and start/stop/step are present
@pep8speaks
Copy link

pep8speaks commented Oct 27, 2024

Hello @talagayev! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2024-10-28 09:06:37 UTC

Copy link

codecov bot commented Oct 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.66%. Comparing base (e776f12) to head (29d4da9).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #4769   +/-   ##
========================================
  Coverage    93.66%   93.66%           
========================================
  Files          177      177           
  Lines        21726    21726           
  Branches      3052     3052           
========================================
  Hits         20349    20349           
  Misses         930      930           
  Partials       447      447           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@talagayev talagayev changed the title Frames values incompatability parallel Addition of pytest case for not None values for frames and start/stop/step Oct 27, 2024
Copy link
Member

@hmacdope hmacdope left a comment

Choose a reason for hiding this comment

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

LGTM @talagayev!

Copy link
Member

@IAlibay IAlibay left a comment

Choose a reason for hiding this comment

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

Happy to discuss this further, but would prefer if we didn't fill up the changelog with small test changes.

package/CHANGELOG Outdated Show resolved Hide resolved
removed Changelog change
@talagayev
Copy link
Member Author

talagayev commented Oct 29, 2024

now that I was working on a different Issue I noticed that test_frame_fail in test_base.py possibly already covers the Issue #4648

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.

Test incompatibility of start/stop/step and frames in AnalysisBase.run(...)
5 participants