22
33from __future__ import annotations
44
5- import pytest
6-
75from tests .conftest import RawCase
86from tests .legacy_calculator import run_legacy_calculator
97from uncertainty_calculator import Digits , Equation , UncertaintyCalculator , Variable
@@ -20,7 +18,6 @@ def test_calculator_output_matches_legacy(
2018 include_equation_number ,
2119):
2220 """Refactored calculator should match the legacy implementation."""
23-
2421 expected_output = run_legacy_calculator (
2522 equation = raw_case .equation ,
2623 variables = raw_case .variables ,
@@ -47,7 +44,6 @@ def test_calculator_output_matches_legacy(
4744
4845def test_run_can_be_called_multiple_times_with_new_inputs ():
4946 """Calculator should not leak state between runs when inputs change."""
50-
5147 digits = Digits (mu = 2 , sigma = 2 )
5248 calc = UncertaintyCalculator (
5349 equation = Equation (lhs = "y" , rhs = "x" ),
@@ -72,7 +68,6 @@ def test_run_can_be_called_multiple_times_with_new_inputs():
7268
7369def test_variable_dataclass_input ():
7470 """Calculator should accept dataclass inputs and return a string output."""
75-
7671 equation_obj = Equation (lhs = r"\zeta" , rhs = r"K*x" )
7772 variables_obj = [
7873 Variable (name = "K" , value = "2" , uncertainty = "0.1" , latex_name = "K" ),
@@ -95,7 +90,6 @@ def test_variable_dataclass_input():
9590
9691def test_mixed_input_types ():
9792 """Numeric values provided as float/int should be accepted."""
98-
9993 equation = Equation (lhs = "y" , rhs = "x" )
10094 variables = [Variable (name = "x" , value = 10.5 , uncertainty = 0.5 , latex_name = "x" )]
10195 digits = Digits (mu = 2 , sigma = 2 )
@@ -111,4 +105,3 @@ def test_mixed_input_types():
111105 )
112106
113107 calc .run ()
114-
0 commit comments