import pytest
class TestLogin(object):
def test_account(self):
pass
def test_wrong(self):
pass
if __name__ == '__main__':
pytest.main(['-s','new.py'])
结果:
Ran 0 tests in 0.000s
OK
Process finished with exit code 0
Empty suite
Empty suite
什么原因啊
把代码用代码块贴一下