From f3df9508515c2fa6bfea1d7369311efbc368b543 Mon Sep 17 00:00:00 2001 From: tamarzanzouri Date: Thu, 15 Feb 2024 16:23:27 -0500 Subject: [PATCH] remove unnecessary test --- robot-server/tests/protocols/test_analysis_store.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/robot-server/tests/protocols/test_analysis_store.py b/robot-server/tests/protocols/test_analysis_store.py index 02d2ce2ab15a..7207e15ff601 100644 --- a/robot-server/tests/protocols/test_analysis_store.py +++ b/robot-server/tests/protocols/test_analysis_store.py @@ -3,7 +3,7 @@ from datetime import datetime, timezone from pathlib import Path -from typing import List, NamedTuple, Union +from typing import List, NamedTuple import pytest @@ -38,8 +38,6 @@ ProtocolResource, ) -from opentrons_shared_data.errors import EnumeratedError, ErrorCodes - @pytest.fixture def protocol_store(sql_engine: SQLEngine) -> ProtocolStore: @@ -230,7 +228,7 @@ class AnalysisResultSpec(NamedTuple): """Spec data for analysis result tests.""" commands: List[pe_commands.Command] - errors: List[Union[pe_errors.ErrorOccurrence, EnumeratedError]] + errors: List[pe_errors.ErrorOccurrence] expected_result: AnalysisResult @@ -261,11 +259,6 @@ class AnalysisResultSpec(NamedTuple): ], expected_result=AnalysisResult.NOT_OK, ), - AnalysisResultSpec( - commands=[], - errors=[EnumeratedError(code=ErrorCodes.GENERAL_ERROR, message="oh no!")], - expected_result=AnalysisResult.NOT_OK, - ), ]