This answer solves only title-question "why the browser is not opening".
Pytest naming convention requires to have Classes and method starting with "Test/test".
So you need to change Class name to Test_Google.
Update - 06/02/2021 - 19:26 PLN Time
How are you running tests? Pytest has own test discovery mechanism. If you call simply from cmd line:
pytest test_script.py
then it should discover existing test/tests
Update - 08/02/2021 - 12:54 PLN Time
So
You would need to provide more information:
- directory structure
- errors during firs/second run
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…