Skip to content

Commit

Permalink
adding logic to remove passed tests video url from junit xml (#13784)
Browse files Browse the repository at this point in the history
(cherry picked from commit 9b1fc48)
  • Loading branch information
omkarkhatavkar authored and web-flow committed Jan 15, 2024
1 parent bfa26d3 commit 75f964b
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 75f964b

Please sign in to comment.