Skip to content

Commit daef25f

Browse files
committed
Update example tests
1 parent 6f5257d commit daef25f

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

examples/uc_cdp_events.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
from pprint import pformat
22
from seleniumbase import BaseCase
3-
4-
if __name__ == "__main__":
5-
from pytest import main
6-
main([__file__, "--uc", "--uc-cdp", "-s"])
3+
BaseCase.main(__name__, __file__, "--uc", "--uc-cdp", "-s")
74

85

96
class CDPTests(BaseCase):

examples/verify_undetected.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
Some sites use scripts to detect Selenium, and then block you.
33
To evade detection, add --uc as a pytest command-line option."""
44
from seleniumbase import BaseCase
5-
6-
if __name__ == "__main__":
7-
from pytest import main
8-
main([__file__, "--uc", "-s"])
5+
BaseCase.main(__name__, __file__, "--uc", "-s")
96

107

118
class UndetectedTest(BaseCase):

0 commit comments

Comments
 (0)