import pytest

#定义的函数必须以test开头
def test_a():
	print("test_a")
	assert 1

import pytest

#定义的函数必须以test开头
def test_a():
	print("test_a")
	assert 1

def test_b():
	print("test_b")
	assert 0

if __name__ == '__main__':
	pytest.main("pytest测试.py")

相关文章:

  • 2021-11-18
  • 2022-12-23
  • 2021-10-15
  • 2022-01-18
  • 2018-06-19
  • 2021-11-11
  • 2022-02-13
  • 2021-06-06
猜你喜欢
  • 2020-10-06
  • 2021-12-06
  • 2022-01-05
  • 2022-02-25
  • 2022-12-23
  • 2021-10-01
  • 2021-01-03
相关资源
相似解决方案