Commit Graph

19 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 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
Konstantin Goloveshko b05dbe0aec Update python environment
- Drop python 3.6 because of EOL
- Drop pytest<5 (Actually there wasn't reason to support 4.x version because they are about 3.4/2.7 python support, which already dropped)
- Fix source distribution build
2022-02-01 22:34:05 +02:00
Tim Gates 4d1c88a83a
docs: Fix a few typos
There are small typos in:
- README.rst
- pytest_bdd/cucumber_json.py
- pytest_bdd/reporting.py
- tests/feature/test_background.py
- tests/feature/test_feature_base_dir.py
- tests/scripts/test_main.py

Fixes:
- Should read `execution` rather than `excecution`.
- Should read `reporting` rather than `reportin`.
- Should read `precedence` rather than `precendence`.
- Should read `possibilities` rather than `possibilies`.
- Should read `outlines` rather than `oultines`.
- Should read `other` rather than `othe`.
- Should read `command` rather than `commmand`.
- Should read `background` rather than `backound`.
- Should read `alphanumeric` rather than `alphanumberic`.
2021-09-08 21:28:52 +10:00
Konstantin Goloveshko e1dc0cad9a Update python and pytest
- Drop support of python 2.7, 3.5; Add explicit support for python >=3.6
- Remove six dependency
- Simplify getting step parser strategy; If step could be stringified it could be used
- Respect pytest --strict option in tests
2021-03-02 19:08:00 +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
Mark Moes 34b7f96b77 Escape quote in generation (#327)
* Escape single quotes in generated test names

* Escape single, double, triple-single and triple-double quoted (doc)strings in generated code
2019-10-20 18:53:29 +02:00
Alessio Bogon 6047a35ef1 Apply `black` formatter to the codebase 2019-08-27 17:54:58 +02:00
Alessio Bogon eded49a2ae Generated step files should raise NotImplementedError 2019-02-17 18:08:38 +01: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 48336f1f94 add coding to generated code. closes #105 2015-03-17 22:57:20 +01:00
Anatoly Bubenkov d1fa804426 Pluggable parsers for step definitions. closes #91 2015-01-07 16:26:20 +01:00
Anatoly Bubenkov c2df5b9873 Fix code generation steps ordering. closes #85 2014-12-17 22:49:02 +01:00
Oleg Pidsadnyi 38d3ad9e0a Generation tests improved 2014-11-10 09:58:46 +01:00
Anatoly Bubenkov f4e80f9067 put assertion back 2014-09-24 10:39:16 +00:00
Anatoly Bubenkov 8e8be17a43 correct generated function names 2014-09-24 08:49:21 +00:00
Anatoly Bubenkov 28e4932a3b correct recursion for --feature parameter of --generate-missing 2014-09-24 08:03:49 +00:00
Anatoly Bubenkov c6dc04386f Validation/generation helpers 2014-09-22 23:31:33 +00:00
Anatoly Bubenkov 57431dc218 Implement simple code generation command. Closes #32 2014-09-19 19:28:47 +00:00