Skip to content

Commit 3939fba

Browse files
committed
Added test to improve coverage
1 parent c5379d5 commit 3939fba

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

pytest_steps/tests/test_steps_harvest.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,3 +181,17 @@ def create_new_name(test_id_series):
181181
results_df.drop(['pytest_obj'], axis=1, inplace=True) # drop pytest object column
182182

183183
return results_df
184+
185+
186+
def test_synthesis_not_flat(request, store):
187+
"""Additional test to improve coverage"""
188+
189+
results_dct = get_session_synthesis_dct(request.session, filter=test_synthesis.__module__,
190+
durations_in_ms=True, test_id_format='function', status_details=False,
191+
flatten=False)
192+
assert len(results_dct) > 0
193+
194+
# put a stupid step param name so that we can easily do the asserts below
195+
results_dct2 = handle_steps_in_synthesis_dct(results_dct, is_flat=False, step_param_names=['hohoho'])
196+
assert [(k, '-') for k in results_dct.keys()] == list(results_dct2.keys())
197+
assert list(results_dct2.values()) == list(results_dct.values())

0 commit comments

Comments
 (0)