Commit graph

5 commits

Author SHA1 Message Date
d050a94272 Fix determination of fixture parameters
- Added ability to pass any parameters to `params` keyword in `pytest.fixture`, except:
  1) `params=<callable object>`, but `params=[<callable object>, ...]` is allowed
  2) `params=[*<any collection>]`

- Analysis of `pytest_generate_tests` is almost equivalent to regular fixtures, except:
  1) `metafunc.parametrize(*<any collection>, **<any dict>)`
  2) `metafunc.parametrize("any", <callable object>)`
  3) `metafunc.parametrize("any1, any2", [(<callable object>, [*<any collection>])]`

Signed-off-by: Kirill Sosnovskikh <k.sosnovskikh@yadro.com>
2024-11-15 16:08:24 +03:00
cd41eb5d03 Add plugin support
The following flags have been added:
- `--plugins` - patterns that plugins must match.
- `--files` - paths to files with fixtures.

Signed-off-by: Kirill Sosnovskikh <k.sosnovskikh@yadro.com>
2024-09-01 13:29:32 +03:00
65fab7f1c5 Fix fixture lookup in pytest_generate_tests
Signed-off-by: Kirill Sosnovskikh <k.sosnovskikh@yadro.com>
2024-08-20 18:32:42 +03:00
156c32a0cb Add pre-commit support
Signed-off-by: Kirill Sosnovskikh <k.sosnovskikh@yadro.com>
2024-08-20 16:51:44 +03:00
cba529dd3b Initial commit
Signed-off-by: Kirill Sosnovskikh <k.sosnovskikh@yadro.com>
2024-08-19 14:13:37 +03:00