@@ -1081,33 +1081,3 @@ def test_rp_tests_attributes_bdd_tags(mock_client_init):
10811081 assert {"key" : "test_key" , "value" : "test_value" } in attributes
10821082 assert {"value" : "ok" } in attributes
10831083 assert {"key" : "key" , "value" : "value" } in attributes
1084-
1085-
1086- @mock .patch (REPORT_PORTAL_SERVICE )
1087- def test_long_step (mock_client_init ):
1088- mock_client = setup_mock_for_logging (mock_client_init )
1089- result = utils .run_pytest_tests (tests = ["examples/bdd/step_defs/long_step_scenario_steps.py" ])
1090- assert int (result ) == 0 , "Exit code should be 0 (no errors)"
1091-
1092- # Verify scenario is correctly identified
1093- scenario_call = mock_client .start_test_item .call_args_list [0 ]
1094- assert scenario_call [1 ]["name" ] == "Feature: Test long step scenario - Scenario: The scenario"
1095- assert scenario_call [1 ]["item_type" ] == "STEP"
1096- assert scenario_call [1 ]["code_ref" ] == "features/long_step_scenario.feature/[SCENARIO:The scenario]"
1097-
1098- # Verify step is truncated but still identifiable
1099- step_call = mock_client .start_test_item .call_args_list [1 ]
1100- step_name = step_call [0 ][0 ]
1101- assert step_name .startswith ("Given A very long step." )
1102- assert len (step_name ) <= 1024 , "Step name should be truncated to at most 1024 characters"
1103- assert step_name .endswith ("..." ), "Truncated step should have ellipsis"
1104-
1105- # Verify step details
1106- assert step_call [0 ][2 ] == "step"
1107- assert step_call [1 ]["parent_item_id" ] == scenario_call [1 ]["name" ] + "_1"
1108- assert step_call [1 ]["has_stats" ] is False
1109-
1110- # Verify all steps pass
1111- finish_calls = mock_client .finish_test_item .call_args_list
1112- for call in finish_calls :
1113- assert call [1 ]["status" ] == "PASSED"
0 commit comments