pytest file name should start with test_*.py. Example : test_login.py function name also should start with test_functionname. Example: testFuncName()