Skip to content

Commit 351ce0f

Browse files
test(app-testing): analysis snapshot improvements (#15522)
the culmination of the 4 below PRs and then reverting all snapshot changes Shout out to @skowalski08 for her help --------- Co-authored-by: Sara Kowalski <[email protected]>
1 parent 6888ffd commit 351ce0f

File tree

106 files changed

+30906
-9127
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+30906
-9127
lines changed

app-testing/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ruff-check:
1616

1717
.PHONY: mypy
1818
mypy:
19-
python -m pipenv run python -m mypy conftest.py automation tests citools
19+
python -m pipenv run python -m mypy automation tests citools
2020

2121
.PHONY: lint
2222
lint: black-check ruff-check mypy

app-testing/automation/data/protocol.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
from pydantic import BaseModel, Field
99

10-
from automation.resources.robot_data import module_types
11-
1210
GENERATED_PROTOCOLS_FOLDER = "generated_protocols"
1311
OVERRIDE_MONIKER = "_Override_"
1412

@@ -19,16 +17,7 @@ class Protocol(BaseModel):
1917
file_stem: str = Field(description="file name not including extension")
2018
file_extension: Literal["json", "py"] = Field(description="file extension of the protocol")
2119
robot: Literal["OT2", "Flex"] = Field(description="the robot type which will appear in the robot field in the app")
22-
app_error: bool = Field(description="will analysis with the app raise an error")
23-
robot_error: bool = Field(description="will analysis with the robot raise an error")
24-
app_analysis_error: Optional[str] = Field(description="the exact error shown in the app popout", default=None)
25-
robot_analysis_error: Optional[str] = Field(description="the exact analysis error from the robot", default=None)
2620
custom_labware: Optional[list[str]] = Field(description="list of custom labware file stems", default=None)
27-
instruments: Optional[list[str]] = Field(description="list of instruments that will show in the app", default=None)
28-
modules: Optional[list[module_types]] = Field(description="list of modules that will show in the app", default=None)
29-
description: Optional[str] = Field(description="Details about this protocol", default=None)
30-
expected_test_failure: bool = Field(description="Is this test expected to fail", default=False)
31-
expected_test_reason: Optional[str] = Field(description="Reason test is failing", default=None)
3221
override_variable_name: Optional[str] = Field(description="The variable name to override", default=None)
3322
override_value: Optional[str] = Field(description="The value of the override", default=None)
3423
from_override: bool = Field(description="Is this protocol generated from an override", default=False)

app-testing/automation/data/protocol_with_overrides.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,7 @@ def create_protocols(self) -> None:
3939
file_stem=new_file_stem,
4040
file_extension=self.file_extension,
4141
robot=self.robot,
42-
app_error=self.app_error,
43-
robot_error=self.robot_error,
44-
app_analysis_error=self.app_analysis_error,
45-
robot_analysis_error=self.robot_analysis_error,
4642
custom_labware=self.custom_labware,
47-
instruments=self.instruments,
48-
modules=self.modules,
49-
description=self.description,
50-
expected_test_failure=self.expected_test_failure,
51-
expected_test_reason=self.expected_test_reason,
5243
from_override=True,
5344
override_value=override,
5445
)

0 commit comments

Comments
 (0)