Commit Graph

20 Commits

Author SHA1 Message Date
David Röthlisberger c8677a7783 tests: Use `pytester` fixture instead of `testdir`
`testdir` is deprecated. It's identical to `pytester`, except that
`testdir` returns `py.path` objects whereas `pytester` returns Python
stdlib `Path` objects. So I had to update usages of those paths.

`pytester` was added in pytest 6.2, which is our minimum supported
version.
2022-11-04 08:53:07 +00:00
Alessio Bogon 49504d4935 Fix typo 2022-07-26 00:26:33 +02:00
Alessio Bogon 18c05bf92b Remove pytest<6 support logic 2022-07-26 00:20:31 +02:00
Alessio Bogon 478e21bcdf Use `_` as step function name. It should not matter what the name is.
Inspired by the `ward` testing framework
2022-07-10 17:41:12 +02:00
Alessio Bogon 9a9201a42d Extract the check of the behaviour of step parsers in a new new test item 2021-04-28 11:32:53 +02:00
Alessio Bogon 4859450686 Black code 2021-04-27 10:43:14 +02:00
Antoine Dao 5694c5778e Fix generate-missing for parsed fixtures 2021-04-09 14:15:10 +01:00
Alessio Bogon 6ca1df907b Fix test not running at all 2020-09-08 09:25:39 +02:00
Alessio Bogon 0408218680 Use compatibility function to assert outcomes 2020-09-05 19:05:57 +02:00
Oleg Pidsadnyi 6ba231fbe3
Converting tests (#367)
* Converting tests to use the correct pytest methodology for plugins
2020-06-14 12:16:09 +02:00
Alessio Bogon 6047a35ef1 Apply `black` formatter to the codebase 2019-08-27 17:54:58 +02:00
James Harris b95e8e35c3 Fix pytest --generate --fixtures flag
This patch resolves the issues where pytest will try to double load the
pytest_cmd_main.
2019-08-23 21:51:40 +02:00
Anthony Sottile 685ae80f10 Mostly factor out `py` module
Still used for `py.io.TerminalWriter` so I added it to `setup.py`
2018-07-07 15:30:03 -07:00
Anatoly Bubenkov 831d2122dc increase test coverage 2015-06-24 01:17:34 +02:00
Anatoly Bubenkov 954180716c Mention step type on step definition not found errors and in code generation. closes #125 2015-06-10 10:03:17 +02:00
Oleg Pidsadnyi 97de1158fd Added hook before the step is executed with evaluated parameters 2015-05-18 13:24:02 +02:00
Oleg Pidsadnyi 38d3ad9e0a Generation tests improved 2014-11-10 09:58:46 +01:00
Oleg Pidsadnyi 7fcd7e2eba Refactor of the feature step, reporting and fix for the multiline background steps. 2014-11-09 12:56:50 +01:00
Anatoly Bubenkov c6dc04386f Validation/generation helpers 2014-09-22 23:31:33 +00:00
Anatoly Bubenkov 47694d0299 BDD tests validation/generation helpers 2014-09-22 06:27:33 +00:00