Commit Graph

991 Commits

Author SHA1 Message Date
Alessio Bogon 18320bbefc `parsers.re` now does fullmatch.
This makes it work the same way other parsers work (they don't ignore non-matching characters at the end of the string)
2022-07-12 18:56:52 +02:00
Alessio Bogon 31dab364bf
Merge pull request #537 from pytest-dev/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2022-07-12 00:06:33 +02:00
pre-commit-ci[bot] c2b582ffe0
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 22.3.0 → 22.6.0](https://github.com/psf/black/compare/22.3.0...22.6.0)
- [github.com/pre-commit/pre-commit-hooks: v4.2.0 → v4.3.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.2.0...v4.3.0)
- [github.com/asottile/pyupgrade: v2.32.1 → v2.37.1](https://github.com/asottile/pyupgrade/compare/v2.32.1...v2.37.1)
2022-07-11 21:57:57 +00:00
Alessio Bogon e2b3ad9784 `poetry update` 2022-07-10 19:51:34 +02:00
Alessio Bogon 9c3712d70b parser not nullable 2022-07-10 17:47:20 +02:00
Alessio Bogon b35cad7bdf parser not nullable 2022-07-10 17:46:22 +02:00
Alessio Bogon 8d3f3743de parser not nullable 2022-07-10 17:46:03 +02:00
Alessio Bogon 478e21bcdf Use `_` as step function name. It should not matter what the name is.
Inspired by the `ward` testing framework
2022-07-10 17:41:12 +02:00
Alessio Bogon f4a7bdfaf1 lazy_step_function -> step_function_marker and make it return None
And fix tests, remove useless ones.
2022-07-10 17:28:02 +02:00
Alessio Bogon 1a831b79b8 Add test 2022-07-10 17:14:12 +02:00
Alessio Bogon e3888bf37c Add pytest-xdist to dev dependencies 2022-07-10 17:13:45 +02:00
Alessio Bogon 9f4ddb1c99 Fix `target_fixture` being overridden at every step decoration 2022-07-10 17:04:21 +02:00
Alessio Bogon f5aafe594d Fix buggy fixture discovery.
Items in fixturemanager._arg2fixturedefs are LIFO, not FIFO
2022-07-10 16:42:31 +02:00
Alessio Bogon b3e0d4ac65 Rename variable 2022-07-10 15:49:33 +02:00
Alessio Bogon 9dad1e9063 Rename variable 2022-07-10 15:35:51 +02:00
Alessio Bogon 02b16d3547 Simplify function 2022-07-10 15:34:59 +02:00
Alessio Bogon 06b3f9997d try-catch only block that can raise 2022-07-10 15:31:55 +02:00
Alessio Bogon 345218dd67 Fix typo 2022-07-10 15:29:46 +02:00
Alessio Bogon a2a94adff1 Fix bug where normal steps would take precedence over other parsers. 2022-07-10 15:26:01 +02:00
Alessio Bogon 158d29b9e5 Fix typo 2022-07-10 15:21:02 +02:00
Alessio Bogon cf104cb045 Put (almost) everything in the StepFunctionContext 2022-07-10 15:08:43 +02:00
Alessio Bogon 0aa30dde52 Rename function 2022-07-10 14:33:20 +02:00
Alessio Bogon 6a2fcfbcd0 Refactor _find_step_function to be readable, hopefully 2022-07-10 14:30:10 +02:00
Alessio Bogon 36bb1b9f32 Make sure step functions can be reused with converters 2022-07-10 14:20:30 +02:00
Alessio Bogon 55f70cf934 Use dict literals in README.rst 2022-07-10 13:40:15 +02:00
Alessio Bogon 15a34de8ae
Merge pull request #533 from pytest-dev/py3.11
Add python 3.11 to the test matrix
2022-07-09 09:44:36 +02:00
Alessio Bogon 3c74f7d899 Add python 3.11 to the test matrix 2022-07-09 09:39:33 +02:00
Alessio Bogon 550e123984
Merge pull request #532 from pytest-dev/poetry
Use Poetry
2022-07-09 09:36:06 +02:00
Alessio Bogon 54a85c9e94 Add types-setuptools to dev dependencies 2022-07-08 22:02:44 +02:00
Alessio Bogon e968e6e14b update mypy in tox.ini 2022-07-08 22:01:58 +02:00
Alessio Bogon 3f21b40933 Add pytest 7.1 2022-07-08 21:57:19 +02:00
Alessio Bogon 6f95c5cacd Remove version from __init__.py, as we track it in pyproject.toml 2022-07-08 21:55:14 +02:00
Alessio Bogon da74e26252 Remove linter step, we have pre-commit.ci 2022-07-08 21:38:48 +02:00
Alessio Bogon e10dcb8168 fix typing 2022-07-08 21:37:33 +02:00
Alessio Bogon ee87505dd6 Merge remote-tracking branch 'origin/poetry' into poetry 2022-07-08 21:23:39 +02:00
Alessio Bogon b4b09c7361 fix tox.ini 2022-07-08 21:23:25 +02:00
Alessio Bogon 9541d72d2d
Merge branch 'master' into poetry 2022-07-08 21:22:36 +02:00
Alessio Bogon 6af0350c5b Instructions for contributors 2022-07-08 15:57:11 +02:00
Alessio Bogon e16fca0868 Use poetry 2022-07-08 15:56:47 +02:00
Alessio Bogon 27dfc13ec9
Merge pull request #531 from pytest-dev/remove-clutter
Remove clutter from _step_decorator
2022-07-08 15:37:02 +02:00
Alessio Bogon 092361aae9 Merge remote-tracking branch 'origin/master' into remove-clutter 2022-07-08 15:07:37 +02:00
Alessio Bogon 9061c6debb use original variable name, remove TODO 2022-07-08 15:05:37 +02:00
Alessio Bogon 1c6a2b3c3e use dict literals 2022-07-08 14:59:00 +02:00
Alessio Bogon 10b5ac90e2 Remove unused argument 2022-07-08 14:57:34 +02:00
Alessio Bogon 52e8c78012 Remove unused imports 2022-07-08 14:54:06 +02:00
Alessio Bogon e57de7ecd4 No need to keep runtime types 2022-07-08 14:53:29 +02:00
Alessio Bogon 588c22a16c More specific types 2022-07-08 14:47:49 +02:00
Alessio Bogon 7f167007de Prefix private attributes set by pytest_bdd, only attach them to the function that need them 2022-07-07 19:03:24 +02:00
Alessio Bogon 81c1bef7aa Partially revert changes, just attach 1 parser to the lazy_step_func, and all the parsers to the actual function 2022-07-07 18:57:41 +02:00
Alessio Bogon 6e1566bb68 Removing clutter from the step_func 2022-07-07 16:30:25 +02:00