Commit Graph

26 Commits

Author SHA1 Message Date
Alessio Bogon 4bcdba4afa Steps and Feature are not hashable, don't attempt to put them in a set for no reason 2022-03-12 12:49:52 +01:00
Alessio Bogon c6d13b8b59 Fix typing 2022-03-03 12:33:02 +01:00
Alessio Bogon 644df2ee52 Use newer typing syntax 2022-02-24 16:00:36 +01:00
Alessio Bogon 021aa3a2e3 Use "from __future__ import annotations" to be less verbose 2022-02-24 15:32:20 +01:00
Alessio Bogon 4ddb257230 Get `pytest tests/` to work again 2021-10-01 20:51:59 +02:00
Alessio Bogon 7ab5aeeb2a Blindly add annotations using pyannotate. A lot to fix.
Commands run:
```
pytest tests/
pyannotate --py3 -w pytest_bdd tests
git add pytest_bdd tests
pre-commit run
```
2021-10-01 20:17:43 +02:00
Alessio Bogon 757b055a6c Make code more straight forward and avoid using pytest internals 2021-04-28 11:08:46 +02:00
Alessio Bogon 57b71c5b9f
Merge branch 'master' into generate-missing-parsers 2021-04-27 09:47:29 +02:00
Alessio Bogon cdb1bdada9
Add `pyupgrade` tool to pre-commit hooks (#416)
* `pyupgrade --py36-plus tests/**/*.py pytest_bdd/**/*.py setup.py`

* add pyupgrade to pre-commit config
2021-04-16 09:35:49 +02:00
Antoine Dao 5694c5778e Fix generate-missing for parsed fixtures 2021-04-09 14:15:10 +01: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
Vitalii Buriak b6786a0102 Possible to relax Gherkin validation for simple steps generator. 2020-04-22 14:51:17 +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
Oleg Pidsadnyi be79c1d534 Cleaned up hooks of the plugin, fixed report serialization to use builtin types. 2016-03-19 00:54:03 +01: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
Laurence Rowe 5bdb0a4b97 Prefix step definition fixture names to avoid name collisions 2015-06-07 23:04:12 +02:00
Oleg Pidsadnyi 97de1158fd Added hook before the step is executed with evaluated parameters 2015-05-18 13:24:02 +02:00
Anatoly Bubenkov 29f2c1cbe4 Implemented shortcut to automatically bind scenarios to tests. closes #103, #89, #92, #90 2015-03-18 23:51:37 +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
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 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 47694d0299 BDD tests validation/generation helpers 2014-09-22 06:27:33 +00:00