Commit Graph

21 Commits

Author SHA1 Message Date
Alessio Bogon 379cb4b47c
Rewrite scenario/feature examples logic (#445)
* rewrite examples subsitution using templating

* Remove “example_converters”

* Remove "expanded" option. It's now the default

* Add utility functions to be able to inspect tests run by the pytester.

* use better timer

* Fix typos

* Fix and simplify tests

* Update to latest python 3.10 version

* Add isort configuration and pre-commit hook

* Fix imports

* Fix types

* Update changelog

* Update README (mainly fix typos, remove outdated options)

* Fix examples in README

* Remove python2 junk

Co-authored-by: Oleg Pidsadnyi <oleg.pidsadnyi@gmail.com>
2021-09-23 21:07:15 +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
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 8008c0f4bc
Given step is no longer a fixture (#376)
* Removing strict gherkin.
* Update README.rst
* Update CHANGELOG
2020-07-01 11:57:00 +02:00
Vitalii Buriak 65873276d3 Clean script file. 2020-04-22 14:51:17 +02:00
Vitalii Buriak 605ab1b453 Relax Gherkin validation for simple steps generator. 2020-04-22 14:51:17 +02:00
Vitalii Buriak b6786a0102 Possible to relax Gherkin validation for simple steps generator. 2020-04-22 14:51:17 +02:00
Alessio Bogon 76d4d876d6 Blackify scripts.py 2019-11-20 22:05:40 +01: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
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
Felix Yan 48a2af4318
Fix a typo in scripts.py 2018-06-09 02:11:19 +08:00
Anatoly Bubenkov 051f0733cf Correctly handle command called without the subcommand under python3. Closes #93 2015-01-06 11:04:25 +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 57431dc218 Implement simple code generation command. Closes #32 2014-09-19 19:28:47 +00:00
Oleg Pidsadnyi 1748de1fe7 version bumped 2014-09-11 22:06:54 +02:00
Dmitrijs Milajevs bfe3cca79c Pretend that print is a function, so Python 3 is happy 2014-04-04 18:35:04 +01:00
Anatoly Bubenkov c0ae33a241 move to single decorator 2014-03-14 14:15:04 +01:00
Anatoly Bubenkov d052bbe998 migrate 2014-03-14 13:36:36 +01:00
Anatoly Bubenkov c5237a217e move to single decorator approach 2014-03-14 13:20:43 +01:00