Skip to content

(#256) Remove walrus operator from asserts - #1100

Merged
jacob-williamson merged 2 commits into
mainfrom
mx_bluesky_256_remove_walrus_in_asserts
Mar 10, 2025
Merged

jacob-williamson merged 2 commits into
mainfrom
mx_bluesky_256_remove_walrus_in_asserts

Conversation

@jacob-williamson

Copy link
Copy Markdown
Contributor

Fixes #256 in MXB

Instructions to reviewer on how to test:

  1. Look for walrus operators in the codebase
  2. Check none occur within an assert statement, other than in tests
  3. If possible, run tests with the -O flag to see that they now pass (possibly using dissert).

Checks for reviewer

  • Would the PR title make sense to a scientist on a set of release notes
  • If a new device has been added does it follow the standards
  • If changing the API for a pre-existing device, ensure that any beamlines using this device have updated their Bluesky plans accordingly
  • Have the connection tests for the relevant beamline(s) been run via dodal connect ${BEAMLINE}

@olliesilvester olliesilvester left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good!

@jacob-williamson
jacob-williamson merged commit fcfe95f into main Mar 10, 2025
@jacob-williamson
jacob-williamson deleted the mx_bluesky_256_remove_walrus_in_asserts branch March 10, 2025 17:42
@codecov

codecov Bot commented Mar 10, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.69%. Comparing base (a1a6d41) to head (743054d).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1100   +/-   ##
=======================================
  Coverage   97.69%   97.69%           
=======================================
  Files         161      161           
  Lines        6650     6652    +2     
=======================================
+ Hits         6497     6499    +2     
  Misses        153      153           

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

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