I am trying to run pytest from cmd and I'm getting this result when I execute pytest Login.py:
================================================== warnings summary ===================================================
C:\automation\test\test.py:36
C:\automation\test\test.py:36: PytestCollectionWarning: cannot collect test class 'TestMain' because it has a __init__ constructor (from: Login.py)
class TestBase():
-- Docs: https://docs.pytest.org/en/latest/warnings.html
================================================= 1 warning in 59.69s =================================================
Inside Login.py, I have an import and I think that might be the problem, but I need that import for the test. Does anyone know how to fix this?