结果:
=========================================================== test session starts ============================================================
platform win32 -- Python 3.6.6, pytest-5.3.2, py-1.8.1, pluggy-0.13.1 -- c:\python36\python.exe
cachedir: .pytest_cache
rootdir: D:\s27\day68, inifile: pytest.ini, testpaths: ./scripts
collected 2 items
scripts/test_case.py::test_index1 登录.......
主页1..........
PASSED
scripts/test_case.py::test_index2 登录.......
主页2..........
PASSED
============================================================= warnings summary =============================================================
scripts\test_case.py:93
D:\s27\day68\scripts\test_case.py:93: DeprecationWarning: invalid escape sequence \s
"""
-- Docs: https://docs.pytest.org/en/latest/warnings.html
======================================================= 2 passed, 1 warning in 0.51s =======================================================