Skip to content

Commit 91aeabf

Browse files
committed
fix: test name for pytest_expect
1 parent 94fb085 commit 91aeabf

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

pytest_splunk_addon/standard_lib/requirement_tests/test_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def generate_cim_req_params(self):
169169
"modinput_params": modinput_params,
170170
"transport_type": transport_type,
171171
},
172-
id=f"{model_list}::{filename}::event_no::{event_no}::req_test_id::{req_test_id}",
172+
id=f"{(' '.join(model_list))}::{filename}::event_no::{event_no}",
173173
)
174174

175175
def get_models(self, root):

tests/unit/tests_standard_lib/test_requirement_tests/test_test_generator.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,8 @@ def test_extract_params():
122122
"modinput_params": None,
123123
"transport_type": "syslog",
124124
},
125-
"['model_1:dataset_1',"
126-
" 'model_2:dataset_2']::fake_path/requirement.log"
127-
"::event_no::1::req_test_id::1",
125+
"model_1:dataset_1 "
126+
"model_2:dataset_2::fake_path/requirement.log::event_no::1",
128127
),
129128
],
130129
),

0 commit comments

Comments
 (0)