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

fix(api): simulate not logging drop_tip with no args #14606

Merged

Conversation

DerekMaggio
Copy link
Contributor

@DerekMaggio DerekMaggio commented Mar 7, 2024

Overview

Fixes RESC-214

Test Plan

  • Add simulate test that runs a protocol using drop_tip with no args

Changelog

  • Add publisher.publish_context context manager when calling drop tip with no args
  • Add above test case to test_simulate.py

Review requests

  • It seems that the simulate drop tip functionality could benefit from more robust test coverage. Should make sure that we validate all branches inside of drop_tip. But is this PR the place to do it?

Risk assessment

Very low. Just added a message and a test

@DerekMaggio DerekMaggio requested a review from a team as a code owner March 7, 2024 17:33
@DerekMaggio DerekMaggio self-assigned this Mar 7, 2024
@ecormany
Copy link
Contributor

ecormany commented Mar 7, 2024

It works 🎉

Copy link
Member

@sfoster1 sfoster1 left a comment

Choose a reason for hiding this comment

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

Looks like it'll work!

@DerekMaggio DerekMaggio merged commit fb23b41 into edge Mar 7, 2024
20 checks passed
y3rsh pushed a commit that referenced this pull request Mar 18, 2024
Fixes [RESC-214](https://opentrons.atlassian.net/browse/RESC-214)

- [x] Add simulate test that runs a protocol using `drop_tip` with no
args

- Add publisher.publish_context context manager when calling drop tip
with no args
- Add above test case to `test_simulate.py`

- It seems that the simulate drop tip functionality could benefit from
more robust test coverage. Should make sure that we validate all
branches inside of drop_tip. But is this PR the place to do it?

Very low. Just added a message and a test

[RESC-214]:
https://opentrons.atlassian.net/browse/RESC-214?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
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