@@ -544,7 +544,7 @@ def test_run_kpi_impact_analysis_expands_modal_split_into_three_modes(
544544 KPIGroupImpactOutput (
545545 id = "3__public_transport" , name = "Modal Split - Public transport" , kpi_ids = ["15" ]),
546546 KPIGroupImpactOutput (
547- id = "3__sustainable_modes" , name = "Modal Split - Sustainable modes " , kpi_ids = ["15" ]),
547+ id = "3__sustainable_modes" , name = "Modal Split - PT+NSM " , kpi_ids = ["15" ]),
548548 ]
549549
550550 input_snapshot , successful_results , error_results = KpiMeasuresAnalysisJob .run_kpi_impact_analysis (
@@ -565,12 +565,12 @@ def test_run_kpi_impact_analysis_expands_modal_split_into_three_modes(
565565 assert "Modal Split - NSM" in analyzed_names
566566 assert "Modal Split - Private" in analyzed_names
567567 assert "Modal Split - Public transport" in analyzed_names
568- assert "Modal Split - Sustainable modes " in analyzed_names
568+ assert "Modal Split - PT+NSM " in analyzed_names
569569
570570 analyzed_groups = [call .args [0 ]
571571 for call in mock_analyzer .run_analysis_group .call_args_list ]
572572 sustainable_group = next (
573- g for g in analyzed_groups if g .name == "Modal Split - Sustainable modes "
573+ g for g in analyzed_groups if g .name == "Modal Split - PT+NSM "
574574 )
575575 assert sorted (sustainable_group .transport_mode_type_filter ) == [
576576 "nsm" , "public_transport" ]
@@ -637,7 +637,7 @@ def test_run_kpi_impact_analysis_modal_split_only_nsm_keeps_nsm_and_sustainable_
637637 ):
638638 """
639639 Given Modal Split analysis and only NSM KPI data in living labs,
640- then only NSM and Sustainable modes sub-groups are analyzed.
640+ then only NSM and PT+NSM sub-groups are analyzed.
641641 """
642642 mock_db = Mock ()
643643
@@ -691,7 +691,7 @@ def test_run_kpi_impact_analysis_modal_split_only_nsm_keeps_nsm_and_sustainable_
691691 KPIGroupImpactOutput (
692692 id = "3__nsm" , name = "Modal Split - NSM" , kpi_ids = ["15" ]),
693693 KPIGroupImpactOutput (
694- id = "3__sustainable_modes" , name = "Modal Split - Sustainable modes " , kpi_ids = ["15" ]),
694+ id = "3__sustainable_modes" , name = "Modal Split - PT+NSM " , kpi_ids = ["15" ]),
695695 ]
696696
697697 input_snapshot , successful_results , error_results = KpiMeasuresAnalysisJob .run_kpi_impact_analysis (
@@ -707,7 +707,7 @@ def test_run_kpi_impact_analysis_modal_split_only_nsm_keeps_nsm_and_sustainable_
707707 assert len (error_results ) == 0
708708 assert mock_analyzer .run_analysis_group .call_count == 2
709709 assert "Modal Split - NSM" in analyzed_names
710- assert "Modal Split - Sustainable modes " in analyzed_names
710+ assert "Modal Split - PT+NSM " in analyzed_names
711711 assert "Modal Split - Private" not in analyzed_names
712712 assert "Modal Split - Public transport" not in analyzed_names
713713
@@ -826,7 +826,7 @@ def test_run_kpi_impact_analysis_modal_split_all_transport_modes_filters_output_
826826 assert "Modal Split - NSM" in result_by_group_name
827827 assert "Modal Split - Private" in result_by_group_name
828828 assert "Modal Split - Public transport" in result_by_group_name
829- assert "Modal Split - Sustainable modes " in result_by_group_name
829+ assert "Modal Split - PT+NSM " in result_by_group_name
830830
831831 nsm_modes = {
832832 kpi ["transport_mode_type" ]
@@ -842,7 +842,7 @@ def test_run_kpi_impact_analysis_modal_split_all_transport_modes_filters_output_
842842 }
843843 sustainable_modes = {
844844 kpi ["transport_mode_type" ]
845- for kpi in result_by_group_name ["Modal Split - Sustainable modes " ]["living_labs_analysis" ][0 ]["kpis" ]
845+ for kpi in result_by_group_name ["Modal Split - PT+NSM " ]["living_labs_analysis" ][0 ]["kpis" ]
846846 }
847847
848848 assert nsm_modes == {"NSM" }
@@ -853,7 +853,7 @@ def test_run_kpi_impact_analysis_modal_split_all_transport_modes_filters_output_
853853 assert mock_run_ridge_regression .call_count == 4
854854
855855 # Call order follows modal split subgroup constant order:
856- # NSM[0], Private[1], Public transport[2], Sustainable modes [3].
856+ # NSM[0], Private[1], Public transport[2], PT+NSM [3].
857857 # With autospec on an instance method, call args are: (self, X, y, ...)
858858 _ , nsm_call_X , nsm_call_y = mock_run_ridge_regression .call_args_list [0 ].args [:3 ]
859859
0 commit comments