开发者社区 问答 正文

python中Pytest框架中的@pytest.fixture函数的scope可能的取值有哪些?

python中Pytest框架中的@pytest.fixture函数的scope可能的取值有哪些?

展开
收起
游客k7rjnht6hbtk6 2021-12-04 14:54:35 446 分享 版权
1 条回答
写回答
取消 提交回答
  • @pytest.fixture函数的scope可能的取值有function,class,module,package 或 session。

    2021-12-04 14:54:50
    赞同 展开评论