Commit Graph

683 Commits

Author SHA1 Message Date
pre-commit-ci[bot] c06175a9c0
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 21.9b0 → 21.10b0](https://github.com/psf/black/compare/21.9b0...21.10b0)
- [github.com/pycqa/isort: 5.9.3 → 5.10.0](https://github.com/pycqa/isort/compare/5.9.3...5.10.0)
2021-11-08 20:17:28 +00:00
Oleg Pidsadnyi 6e421679b4 Release 5.0.0 2021-10-25 18:09:25 +02:00
Alessio Bogon bd3f8944d4
Merge pull request #451 from pytest-dev/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2021-10-20 15:33:22 +02:00
pre-commit-ci[bot] 61cd7c8e86
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v2.28.0 → v2.29.0](https://github.com/asottile/pyupgrade/compare/v2.28.0...v2.29.0)
2021-10-04 19:49:45 +00:00
Alessio Bogon 583910d88d
Merge pull request #444 from timgates42/bugfix_typos
docs: Fix a few typos
2021-10-01 20:01:23 +02:00
Alessio Bogon b94a8f1677
Merge branch 'master' into bugfix_typos 2021-10-01 19:33:51 +02:00
Alessio Bogon 1b53646145
Merge pull request #446 from pytest-dev/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2021-10-01 19:27:57 +02:00
pre-commit-ci[bot] bc7c209476 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2021-09-27 19:47:32 +00:00
pre-commit-ci[bot] 0f8bd3bab5
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v2.26.0 → v2.28.0](https://github.com/asottile/pyupgrade/compare/v2.26.0...v2.28.0)
2021-09-27 19:44:28 +00: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
Tim Gates 4d1c88a83a
docs: Fix a few typos
There are small typos in:
- README.rst
- pytest_bdd/cucumber_json.py
- pytest_bdd/reporting.py
- tests/feature/test_background.py
- tests/feature/test_feature_base_dir.py
- tests/scripts/test_main.py

Fixes:
- Should read `execution` rather than `excecution`.
- Should read `reporting` rather than `reportin`.
- Should read `precedence` rather than `precendence`.
- Should read `possibilities` rather than `possibilies`.
- Should read `outlines` rather than `oultines`.
- Should read `other` rather than `othe`.
- Should read `command` rather than `commmand`.
- Should read `background` rather than `backound`.
- Should read `alphanumeric` rather than `alphanumberic`.
2021-09-08 21:28:52 +10:00
Oleg Pidsadnyi c6b7134e59 Revert "Allows use <params> in parsers defined steps"
This reverts commit 7850f218b7.
2021-08-18 09:23:31 +02:00
Oleg Pidsadnyi 628f2e1f44 Revert "More tests for <params> in parsers defined steps"
This reverts commit 0590b7bf63.
2021-08-18 09:23:31 +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