Skip to content

Commit

Permalink
[6.14.z] adding logic to remove passed tests video url from junit xml (
Browse files Browse the repository at this point in the history
…#13787)

adding logic to remove passed tests video url from junit xml (#13784)

(cherry picked from commit 9b1fc48)

Co-authored-by: Omkar Khatavkar <[email protected]>
  • Loading branch information
Satellite-QE and omkarkhatavkar authored Jan 15, 2024
1 parent d3f0ba4 commit 69bc75f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pytest_plugins/video_cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ def pytest_runtest_makereport(item):
if item.nodeid in test_results:
result_info = test_results[item.nodeid]
if result_info.outcome == 'passed':
report.user_properties = [
(key, value) for key, value in report.user_properties if key != 'video_url'
]
session_id_tuple = next(
(t for t in report.user_properties if t[0] == 'session_id'), None
)
Expand Down

0 comments on commit 69bc75f

Please sign in to comment.