Oleg Pidsadnyi
f75a57b22b
Revert "Allows use <params> in parsers defined steps"
...
This reverts commit 7850f218b7
.
2021-08-18 09:20:58 +02:00
Oleg Pidsadnyi
4f1a0f8707
Revert "More tests for <params> in parsers defined steps"
...
This reverts commit 0590b7bf63
.
2021-08-18 09:20:58 +02:00
Kostiantyn Goloveshko
0590b7bf63
More tests for <params> in parsers defined steps
2021-08-17 20:59:14 +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
Thomas Grainger
c7faa9fa41
Merge pull request #436 from pytest-dev/graingert-patch-1
...
use py3.10 beta 4
2021-07-31 13:25:36 +01:00
Thomas Grainger
baff41f39e
use py3.10 beta 4
2021-07-29 18:13:13 +01:00
Alessio Bogon
3dce929a77
Version 4.1.0 (also fix the way we release)
2021-07-03 10:58:04 +02:00
Alessio Bogon
98f67019de
Merge pull request #431 from pytest-dev/then-when-target-fixture
...
Support `target_fixture` in `when` and `then` steps.
2021-07-03 10:30:38 +02:00
Alessio Bogon
f172bd6fe2
Merge branch 'master' into then-when-target-fixture
2021-07-03 10:16:59 +02:00
Alessio Bogon
775b6dc630
Update pre-commit hooks' version and apply them to all the files.
2021-07-03 10:16:33 +02:00
Alessio Bogon
2716593c47
Fix example
2021-07-03 10:05:27 +02:00
Alessio Bogon
82c930f714
Add changelog entry
2021-07-03 10:02:33 +02:00
Alessio Bogon
c3263c6abf
Add documentation about `when`, `then` steps supporting target_fixture
2021-07-03 10:01:04 +02:00
Alessio Bogon
ad593d2caf
Let "when" and "then" steps define a target fixture.
...
See discussion at https://github.com/pytest-dev/pytest-bdd/issues/402#issuecomment-869615840
2021-07-03 09:45:21 +02:00
Alessio Bogon
0f02d56fa6
Merge pull request #420 from pytest-dev/simplify-code
...
Simplify code
2021-04-29 13:51:53 +02:00
Alessio Bogon
0930c8a043
remove redundant variable
2021-04-28 15:37:55 +02:00
Alessio Bogon
86c471a24f
Remove ancient pytest compatibility
2021-04-28 12:39:59 +02:00
Alessio Bogon
635dd3f679
Remove compatibility code for ancient versions of pytest
2021-04-28 12:33:22 +02:00
Alessio Bogon
c197799e02
Simplify code
2021-04-28 12:06:27 +02:00
Alessio Bogon
87d8e50592
Add changelog entry
2021-04-28 12:03:35 +02:00
Alessio Bogon
bb6414ed83
Merge pull request #415 from AntoineDao/generate-missing-parsers
...
Fix generate-missing for steps with parsers
2021-04-28 12:01:43 +02:00
Alessio Bogon
9a9201a42d
Extract the check of the behaviour of step parsers in a new new test item
2021-04-28 11:32:53 +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
4859450686
Black code
2021-04-27 10:43:14 +02:00
Alessio Bogon
b0ae6ac329
Merge branch 'master' into generate-missing-parsers
2021-04-27 10:31:29 +02:00
Alessio Bogon
e76c0cd68d
Trim whitespaces (pre-commit run --all-files)
2021-04-27 10:26:07 +02:00
Alessio Bogon
cbb648316e
Update pre-commit-config
2021-04-27 10:25:04 +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
Alessio Bogon
26adcc468a
Switch to GitHub actions ( #417 )
...
* Add github workflow for testing
* Add .editorconfig
* setup.py -> setup.cfg
* Remove .travis.yml
* Test on the python python 3.10 (alpha)
2021-04-16 09:27:31 +02:00
Alessio Bogon
123cd22701
Add entry to the changelog
2021-04-15 10:50:20 +02:00
Alessio Bogon
093e0a0855
Simplify test
2021-04-15 10:48:59 +02:00
marcbrossaissogeti
3a730e4dcc
cast "values" as a string because it could be another type if using e… ( #335 )
...
* cast "values" as a string because it could be another type if using example converters
* Test for int string and float value
Co-authored-by: Marc BROSSAIS <marc.brossais@capgemini.com>
Co-authored-by: Alessio Bogon <youtux@users.noreply.github.com>
2021-04-15 10:45:24 +02:00
Antoine Dao
5694c5778e
Fix generate-missing for parsed fixtures
2021-04-09 14:15:10 +01:00
Alessio Bogon
0d43cc4d9a
Merge pull request #410 from The-Compiler/docs
...
Drop the pytest dot
2021-03-29 15:30:43 +02:00
Florian Bruhin
5ed83fe4da
Drop the pytest dot
2021-03-29 12:04:35 +02:00
Alessio Bogon
5d58fe3bbb
Merge pull request #406 from elchupanebrej/actual_python_pytest
...
- Drop support of python 2.7, 3.5; Add explicit support for python >=3.6
- Remove six dependency
Co-authored-by: Konstantin Goloveshko <konstantin.goloveshko@collabio.team>
2021-03-02 19:24:50 +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
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
Alessio Bogon
cba9a8ba90
Bump version 4.0.1
2020-09-08 12:03:15 +02:00
Alessio Bogon
a8c1ff4ff3
Fix performance regression from version 4.0.0 ( #386 )
...
* Fix performance issue when collecting tests.
* Add changelog entry
2020-09-08 11:59:01 +02:00
Alessio Bogon
6ca1df907b
Fix test not running at all
2020-09-08 09:25:39 +02:00
Alessio Bogon
99f8a5342a
Version 4
...
Do not include CHANGES.rst in the PyPI description, as we use custom sphinx extensions.
2020-09-07 11:18:39 +02:00
Alessio Bogon
853c615748
Support for pytest 6 "--import-mode=importlib" ( #384 )
...
* Fix compatibility with pytest 6 "--import-mode=importlib"
* Rewrite `scenario` and `scenarios` tests so that we can easily parametrize with the different pytest --import-mode.
* Update changelog
2020-09-07 09:43:29 +02:00
Alessio Bogon
882291524b
Merge pull request #383 from pytest-dev/update-pytests
...
Update pytests
2020-09-06 08:53:42 +02:00
Alessio Bogon
fc9adba38b
Blackify code
2020-09-05 20:17:25 +02:00
Alessio Bogon
4d99a5fdfe
Update pre-commit hooks
2020-09-05 20:11:49 +02:00
Alessio Bogon
688c963dac
Fix gherkin terminal reporter not displaying the test item location (a test was failing).
2020-09-05 20:04:25 +02:00
Alessio Bogon
d78eaace80
Fix test
...
(cherry picked from commit eba1d70fcc
)
2020-09-05 19:28:50 +02:00