Alessio Bogon
e6aefa55af
Fix types
2021-09-19 13:19:01 +02:00
Alessio Bogon
89ef9e0f62
remove copy-pasted code
2021-09-19 12:56:04 +02:00
Alessio Bogon
a1c92bdbe1
Add isort configuration and pre-commit hook
2021-09-19 00:19:24 +02:00
Alessio Bogon
0e4d2718e0
Remove unused attribute
2021-09-19 00:11:27 +02:00
Alessio Bogon
e7b8ecbaf9
Move re to the beginning of the module
2021-09-19 00:00:30 +02:00
Alessio Bogon
7ed5bf687d
Inline method get_params()
2021-09-18 23:59:16 +02:00
Alessio Bogon
9010a16f73
Fix test items ending with "[]" (for example, "test_scenarios.py::test_already_bound[]").
2021-09-18 17:45:45 +02:00
Alessio Bogon
5ce621d678
fix no value being yielded
2021-08-29 12:47:03 +02:00
Alessio Bogon
86aa214531
Fix bug when empty examples in Feature results in test being skipped.
2021-08-29 12:42:52 +02:00
Alessio Bogon
b6e442caa6
Remove unused argument
2021-08-22 18:34:44 +02:00
Alessio Bogon
41b86271c9
Simplify code
2021-08-22 18:33:40 +02:00
Alessio Bogon
7190286638
Minor trivial fixes
2021-08-22 18:21:59 +02:00
Alessio Bogon
c81e06d548
Minor trivial fixes
2021-08-22 18:05:54 +02:00
Alessio Bogon
13ce955b16
Cleanup code
2021-08-22 17:22:53 +02:00
Alessio Bogon
34e3da12fb
Fix background steps not being used
2021-08-22 10:57:18 +02:00
Alessio Bogon
58bc825a08
Remove occurrences of example_converters
2021-08-22 10:51:00 +02:00
Alessio Bogon
8c0db0fd6c
Start removing example_converters
2021-08-22 10:40:21 +02:00
Alessio Bogon
971528a589
Very bare implementation of examples subsitution using templating, instead of using parametrization.
...
`test_outlined` should succeed.
2021-08-21 15:42:01 +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