File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 99
1010@pytest .fixture (scope = 'function' )
1111def browser_func (choose_driver ):
12+ """Browser that closes after each test function or method."""
1213 yield choose_driver
1314 choose_driver .quit ()
1415
1516
1617@pytest .fixture (scope = 'class' )
1718def browser_class (choose_driver ):
19+ """Browser that closes after each test class."""
1820 yield choose_driver
1921 choose_driver .quit ()
2022
2123
2224@pytest .fixture (scope = 'module' )
2325def browser_module (choose_driver ):
26+ """Browser that closes after each test module."""
2427 yield choose_driver
2528 choose_driver .quit ()
2629
2730
2831@pytest .fixture (scope = 'session' )
2932def choose_driver (is_remote , t_browser ):
33+ """Remote or local browser selector fixture."""
3034 if is_remote :
3135 return remote_driver (t_browser )
3236 return custom_driver (t_browser )
You can’t perform that action at this time.
0 commit comments