Oleg Pidsadnyi
d52dea9215
Preparing the scenario for multiple example tables
2022-01-12 15:54:02 +01:00
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
Oleg Pidsadnyi
c6b7134e59
Revert "Allows use <params> in parsers defined steps"
...
This reverts commit 7850f218b7
.
2021-08-18 09:23:31 +02:00
Konstantin Goloveshko
7850f218b7
Allows use <params> in parsers defined steps
...
So parsers could parse values defined in Examples
2021-08-17 20:59:14 +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
Alessio Bogon
7cb344ef64
Fix bug when using comments in the "Examples:" section ( #398 )
...
* Fix bug when using comments in the "Examples:" section
2020-12-07 13:38:07 +01:00
Alessio Bogon
02e667f239
Move Feature, Scenario, Step classes into the parser module ( #388 )
...
* Move the parsing logic to its own module
* Remove Feature.get_feature classmethod, in favour of the get_feature function on the feature module
2020-09-15 11:18:57 +02:00