Jason Allen
75f122313a
Remove the custom definition of the gherkin document as dataclasses in pytest-bdd.
...
Bump the minimum supported version of gherkin-official to v30 to support this and remove the warnings in python 3.13+
2025-01-01 19:46:22 +00:00
Alessio Bogon
9ff6980311
Merge pull request #753 from pytest-dev/ab/gherkin-official-req
...
Relax `gherkin-official` dep requirement
2024-12-08 13:59:12 +01:00
Alessio Bogon
7decb11aac
Use 4 parallel workers in tox runs
2024-12-08 12:51:38 +01:00
Alessio Bogon
4664baa2ca
Add changelog entry
2024-12-08 12:44:38 +01:00
Alessio Bogon
d4a5271533
Fix typing
...
TypedDict is not a subclass of `dict`, but it is a subclass of `Mapping`. Go figure.
2024-12-08 12:33:46 +01:00
Alessio Bogon
0d1c46ba51
Add `gherkin-official` combinations to tox matrix
2024-12-08 12:17:42 +01:00
Alessio Bogon
de4bb86f11
`poetry update`
2024-12-08 12:12:39 +01:00
Alessio Bogon
8ce79eafa6
Less strict `gherkin-official` version requirement
2024-12-08 12:10:36 +01:00
Alessio Bogon
9bb4967d9c
Merge pull request #658 from pytest-dev/ab/fix-typing
...
Fix typing
2024-12-05 23:27:38 +01:00
Alessio Bogon
f4413e586d
Update/fix changelog
2024-12-05 23:19:26 +01:00
Alessio Bogon
0bb8b0c1cb
Fix `description` typing
2024-12-05 23:13:51 +01:00
Alessio Bogon
150e07988e
Merge branch 'master' into ab/fix-typing
2024-12-05 22:48:21 +01:00
Alessio Bogon
6cdd340504
Bump version to 8.1.0
2024-12-05 22:39:37 +01:00
Alessio Bogon
68b9625ae7
Fix Changelog
2024-12-05 22:37:39 +01:00
Alessio Bogon
86a956e12b
Merge pull request #745 from pytest-dev/test-177
2024-12-02 23:12:49 +01:00
jsa34
633ee28fd7
Merge branch 'master' into test-177
2024-12-02 22:09:00 +00:00
Jason Allen
6e1f54d291
Update test steps
2024-12-02 22:08:48 +00:00
Alessio Bogon
6a2b2fbfbc
Merge pull request #749 from pytest-dev/test-feature-description-in-json
...
Add scenario description to JSON and add test for JSON correctly populating the description from a feature
2024-12-02 22:17:32 +01:00
Jason Allen
02d7c3f48b
Add changelog entry
2024-12-02 21:52:50 +01:00
Jason Allen
4df8963d2b
Add new description field that is now expected
2024-12-02 21:52:50 +01:00
Jason Allen
e19288ac07
Add missing scenario description in json
2024-12-02 21:52:50 +01:00
Jason Allen
0efda3f87d
Add test for json correctly populating the description from a feature
2024-12-02 21:52:50 +01:00
Jason Allen
429205e5b5
Make test more focussed on the issue
2024-12-02 18:48:10 +00:00
Alessio Bogon
be834076f3
Merge pull request #747 from pytest-dev/test-551
...
Empty example table entries with converter to None documentation
2024-12-01 23:17:13 +01:00
Jason Allen
e181ced0b4
Remove unnecessary test
2024-12-01 21:03:13 +00:00
jsa34
781797c9dc
Make test purpose wording clearer
2024-12-01 17:11:12 +00:00
jsa34
c7189fd48f
Make clearer what the test is asserting
2024-12-01 17:07:15 +00:00
Alessio Bogon
5e5c60f3b5
Remove usages of `Any` from `scenario.py`
2024-12-01 16:38:30 +01:00
Alessio Bogon
ad221becd1
Fix typing in `reporting.py` and `cucumber_json.py`
...
I managed to remove all occurrences of `Any`, and use proper typed dicts instead
2024-12-01 16:35:11 +01:00
Alessio Bogon
4ccb683ecd
Merge remote-tracking branch 'origin/master' into ab/fix-typing
...
# Conflicts:
# CHANGES.rst
# src/pytest_bdd/parser.py
# src/pytest_bdd/scenario.py
# src/pytest_bdd/utils.py
2024-12-01 16:02:33 +01:00
jsa34
6c4391ac1a
Merge branch 'master' into test-177
2024-12-01 11:31:15 +00:00
Jason Allen
f9728efbef
Add to README how to make empty example cells return None, and add docstring to test
2024-12-01 11:30:04 +00:00
Jason Allen
9826dc7207
Merge branch 'master' into test-551
2024-12-01 10:54:19 +00:00
jsa34
d527a6769b
Merge pull request #737 from yunxuo/master
...
fix: default value not covered by parameters passed through feature file
2024-12-01 10:50:56 +00:00
Alessio Bogon
afec8b185d
Add back comment that was relevant
2024-12-01 11:02:33 +01:00
Alessio Bogon
5e10d3430f
Change function name so that it's clearer what it does
2024-12-01 11:00:31 +01:00
Alessio Bogon
9d99f0eceb
Remove irrelevant comment
2024-12-01 10:57:38 +01:00
Alessio Bogon
584b676c6d
Explain why we do things
2024-12-01 10:57:26 +01:00
Alessio Bogon
a065d693b8
Merge remote-tracking branch 'origin/master' into fork/yunxuo/master
2024-12-01 10:56:29 +01:00
Alessio Bogon
4602314d03
Add test
2024-12-01 10:56:08 +01:00
Alessio Bogon
3752e405a3
Simplify implementation
2024-12-01 10:47:10 +01:00
Alessio Bogon
bf7971a8cc
Make sure we test what the "given" step receives
...
Also, no need for this to use scenario outlines.
2024-12-01 10:43:39 +01:00
Alessio Bogon
f5c3faa72a
Remove useless nested function
2024-12-01 09:38:45 +01:00
Alessio Bogon
39a948c2ef
Merge remote-tracking branch 'origin/master' into fork/yunxuo/master
2024-12-01 09:37:09 +01:00
jsa34
441c28b1ab
Merge branch 'master' into test-551
2024-12-01 07:49:11 +00:00
jsa34
5d17d8c3ab
Merge pull request #748 from pytest-dev/raise-error-if-step-uses-reserved-arguments
...
Raise an error if a step defines reserved argument names (`datatable`, `docstring`)
2024-12-01 07:40:45 +00:00
Alessio Bogon
c3a49c24a8
Fix return type
2024-11-30 23:59:40 +01:00
Alessio Bogon
0914837a03
Add changelog entry
2024-11-30 23:57:11 +01:00
Alessio Bogon
4eb54fdc7a
Raise an error if a step defines reserved argument names
...
This can cause headaches in the future, when users can't figure out why their step argument 'datatable' or 'docstring' does not get the value they expect
2024-11-30 23:54:06 +01:00
Alessio Bogon
c70f526c60
Merge pull request #743 from pytest-dev/render-docstrings-and-datatables-with-example-params
...
Render docstrings and datatable cells with example table entries
2024-11-30 23:12:07 +01:00