mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-28 13:11:49 +00:00
webdriver tests only when specified
This commit is contained in:
parent
98951bbe76
commit
1703935375
1 changed files with 11 additions and 5 deletions
|
@ -258,11 +258,17 @@ make_nsig_test = t_factory(
|
||||||
for test_spec in _NSIG_TESTS:
|
for test_spec in _NSIG_TESTS:
|
||||||
make_nsig_test(*test_spec)
|
make_nsig_test(*test_spec)
|
||||||
|
|
||||||
make_nsig_wd_test = t_factory(
|
test_wd = False
|
||||||
|
for arg in sys.argv:
|
||||||
|
if arg == '--test_wd':
|
||||||
|
test_wd = True
|
||||||
|
break
|
||||||
|
if test_wd:
|
||||||
|
sys.argv = [arg for arg in sys.argv if arg != '--test_wd']
|
||||||
|
make_nsig_wd_test = t_factory(
|
||||||
'nsig_wd', n_sig_wd, re.compile(r'.+/player/(?P<id>[a-zA-Z0-9_-]+)/.+.js$'))
|
'nsig_wd', n_sig_wd, re.compile(r'.+/player/(?P<id>[a-zA-Z0-9_-]+)/.+.js$'))
|
||||||
for test_spec in _NSIG_TESTS:
|
for test_spec in _NSIG_TESTS:
|
||||||
make_nsig_wd_test(*test_spec)
|
make_nsig_wd_test(*test_spec)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
Loading…
Reference in a new issue