Skip to content

Commit c0d92bd

Browse files
committed
Fix issue with deselected tests appearing in the dashboard
1 parent 4e2606a commit c0d92bd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

seleniumbase/plugins/pytest_plugin.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,10 @@ def pytest_itemcollected(item):
767767
def pytest_deselected(items):
768768
if sb_config.dashboard:
769769
sb_config.item_count -= len(items)
770+
for item in items:
771+
test_id, display_id = _get_test_ids_(item)
772+
if test_id in sb_config._results.keys():
773+
sb_config._results.pop(test_id)
770774

771775

772776
def pytest_collection_finish(session):

0 commit comments

Comments
 (0)