Generating py.test tests in Python

前端 未结 2 1557
攒了一身酷
攒了一身酷 2021-02-05 07:10

Question first, then an explanation if you\'re interested.

In the context of py.test, how do I generate a large set of test functions from a small set of test-function te

2条回答
  •  日久生厌
    2021-02-05 07:50

    Good instincts. py.test supports exactly what you're talking about with its pytest_generate_tests() hook. They explain it here.

提交回复
热议问题