Commit Graph

1030 Commits

Author SHA1 Message Date
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 f3d363e348 Commit something made a long time ago, not sure what the idea was 2021-07-03 09:04:06 +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 e43fd153bc Step docstrings and datatables! 2020-09-15 14:57:27 +02:00
Alessio Bogon 4e0cbb0659 Test some real usage of the new parser! 2020-09-15 11:41:33 +02:00
Alessio Bogon 25eaebd506 Merge branch 'master' into rewrite-parser
# Conflicts:
#	pytest_bdd/parser.py
2020-09-15 11:20:44 +02: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 0d447dc738 Basic tests for the new parser! 2020-09-15 11:15:55 +02:00
Alessio Bogon 37a4ce061a Move new parser out of the parser directory 2020-09-15 10:22:57 +02:00
Alessio Bogon d47abb7974 Merge branch 'refactor-classes' into rewrite-parser
# Conflicts:
#	pytest_bdd/feature.py
2020-09-15 10:18:32 +02:00
Alessio Bogon c77ae529e9 Move all the parsing models to the parser module. 2020-09-13 20:36:00 +02:00
Alessio Bogon d6c541f033 Fix circular import 2020-09-13 20:22:30 +02:00
Alessio Bogon 59c8e7c9d0 self -> feature 2020-09-13 20:20:12 +02:00
Alessio Bogon 4fc0570e8e Remove Feature.get_feature, in favour of the get_feature function 2020-09-13 20:15:47 +02:00
Alessio Bogon 1d8f81e222 Move most of the parsing logic to its own module 2020-09-13 19:55:16 +02:00
Alessio Bogon 38576fdb41 Draft rewrite of the parser 2020-09-13 19:04:10 +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