@@ -581,7 +581,7 @@ def test_make_path_integrals_validation():
581581 microwave_spec = td .MicrowaveModeSpec (impedance_specs = (impedance_spec ,))
582582
583583 # Test successful creation
584- voltage_integrals , current_integrals = make_path_integrals (microwave_spec , mode_monitor )
584+ voltage_integrals , current_integrals = make_path_integrals (microwave_spec )
585585 assert len (voltage_integrals ) == 1
586586 assert len (current_integrals ) == 1
587587 assert voltage_integrals [0 ] is not None
@@ -590,7 +590,7 @@ def test_make_path_integrals_validation():
590590 # Test with None specs - when both are None, use_automatic_setup is True
591591 # This means current integrals will be auto-generated, not None
592592 microwave_spec_none = td .MicrowaveModeSpec (impedance_specs = (None ,))
593- voltage_integrals , current_integrals = make_path_integrals (microwave_spec_none , mode_monitor )
593+ voltage_integrals , current_integrals = make_path_integrals (microwave_spec_none )
594594 assert len (voltage_integrals ) == mode_monitor .mode_spec .num_modes
595595 assert len (current_integrals ) == mode_monitor .mode_spec .num_modes
596596 assert all (vi is None for vi in voltage_integrals )
@@ -600,9 +600,6 @@ def test_make_path_integrals_validation():
600600def test_make_path_integrals_construction_errors (monkeypatch ):
601601 """Test that make_path_integrals handles construction errors properly."""
602602
603- sim = make_mw_sim (False , False , "microstrip" )
604- mode_monitor = sim .monitors [0 ]
605-
606603 # Create a valid spec
607604 v_spec = td .AxisAlignedVoltageIntegralSpec (center = (1 , 2 , 3 ), size = (0 , 0 , 1 ), sign = "-" )
608605
@@ -620,7 +617,7 @@ def mock_make_voltage_integral(path_spec):
620617
621618 # This should raise a SetupError due to construction failure
622619 with pytest .raises (SetupError , match = "Failed to construct path integrals" ):
623- make_path_integrals (microwave_spec , mode_monitor )
620+ make_path_integrals (microwave_spec )
624621
625622
626623def test_path_integral_factory_composite_current ():
@@ -658,9 +655,6 @@ def test_path_integral_factory_composite_current():
658655def test_path_integral_factory_mixed_specs ():
659656 """Test make_path_integrals with mixed voltage and current specs (some None)."""
660657
661- sim = make_mw_sim (False , False , "microstrip" )
662- mode_monitor = sim .monitors [0 ]
663-
664658 # Create specs where some are None
665659 v_spec = td .AxisAlignedVoltageIntegralSpec (center = (1 , 2 , 3 ), size = (0 , 0 , 1 ), sign = "-" )
666660 i_spec = td .AxisAlignedCurrentIntegralSpec (center = (1 , 2 , 3 ), size = (0 , 1 , 1 ), sign = "-" )
@@ -675,7 +669,7 @@ def test_path_integral_factory_mixed_specs():
675669 ),
676670 )
677671
678- voltage_integrals , current_integrals = make_path_integrals (microwave_spec , mode_monitor )
672+ voltage_integrals , current_integrals = make_path_integrals (microwave_spec )
679673
680674 assert len (voltage_integrals ) == 2
681675 assert len (current_integrals ) == 2
0 commit comments