【Pytest】2021-Pytest使用教程 - 课程知识点目录

P4 04-fixture的基本使用

  • @pytest.fixture:用此函数为其它测试函数的同名形参赋值
  • Fixture函数一般不用test_开头

你可能感兴趣的:(pytest)