ITPub博客

第1章 pytest入门

投稿 Python 作者:格伯纳 时间:2018-10-30 14:57:29 0 编辑
摘要

这是一个测试用例:ch1/test_one.pydeftest_passing():    assert(1, 2, 3) == (1, 2, 3)打开终端执行以下代码:$ cd /path/to/code/ch1$ pytest test_one.py================test session starts==================

请登录后发表评论 登录
全部评论
管理员

注册时间:2018-03-30

  • 博文量
    2383
  • 访问量
    983879