-
Notifications
You must be signed in to change notification settings - Fork 179
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
refactor(api): add create_file_runner factory #7857
Conversation
Codecov Report
@@ Coverage Diff @@
## edge #7857 +/- ##
==========================================
- Coverage 93.44% 83.63% -9.81%
==========================================
Files 130 353 +223
Lines 5081 21727 +16646
==========================================
+ Hits 4748 18172 +13424
- Misses 333 3555 +3222
Continue to review full report at Codecov.
|
@@ -51,6 +52,12 @@ def exception_handler(loop, context): | |||
loop.set_exception_handler(None) | |||
|
|||
|
|||
@pytest.fixture | |||
def decoy() -> Decoy: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Finally putting this in the top level conftest
|
||
|
||
@pytest.fixture | ||
def json_protocol_dict(minimal_labware_def: dict) -> dict: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just moving this helpful fixture that @sanni-t added
b64bb80
to
086ae72
Compare
48f1db4
to
069cc69
Compare
069cc69
to
c9a98a6
Compare
Changes addressed during PR review |
Overview
This PR is 3 of 4 working towards #7816.
chore(api,robot-server): update testing dev deps chore(api,robot-server): update testing dev deps #7855Mergedrefactor(robot-server): add experimental protocol router refactor(robot-server): add experimental protocol router #7856MergedThis PR prepares for session wireup to the
JsonFileRunner
by adding a factory function to set up a JsonFileRunner.Blocked by #7856, will require sync after mergeChangelog
create_file_runner
factory to create a file runner instance given:file_type
: Python or JSON (Python and others left unimplemented)file_path
: path on the filesystem to the fileengine
: ProtocolEngine instanceReview requests
Risk assessment
Low, not hooked to production code