【问题标题】:How do the arguments are being passed to test functions in tox/py.test?如何将参数传递给 tox/py.test 中的测试函数?
【发布时间】:2016-08-18 12:19:38
【问题描述】:

我正在学习用 tox 编写测试。如何将参数传递给 tox/py.test 中的测试函数?例如,在 test_simple_backup_generationtests/test_backup_cmd.py 中的 django-backup extension 中有三个参数 tmpdirsettingsdb。我不知道他们是从哪里来的。在 tox 文档中也没有提到这一点。

【问题讨论】:

    标签: python automated-tests pytest tox


    【解决方案1】:

    这些是由pytest-djangopytest itself 提供的pytest fixtures

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-05-25
      • 2015-03-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多