python-pytest-cases
python-pytest-cases copied to clipboard
Separate test code from test cases in pytest.
### GitHub Actions Version Updates * **[pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish)** published a new release **[v1.8.12](https://github.com/pypa/gh-action-pypi-publish/releases/tag/v1.8.12)** on 2024-02-27T04:39:59Z * **[actions/download-artifact](https://github.com/actions/download-artifact)** published a new release **[v4.1.3](https://github.com/actions/download-artifact/releases/tag/v4.1.3)** on 2024-02-26T20:25:47Z * **[codecov/codecov-action](https://github.com/codecov/codecov-action)** published a new release **[v4.1.0](https://github.com/codecov/codecov-action/releases/tag/v4.1.0)**...
pytest 8.0.0 just released earlier today, and it looks like there's an incompatibility with `pytest_cases.fixture`. Minimal example: ```python from pytest_cases import fixture @fixture def a(): return "a" def test_a(a): assert...
Hi, I am looking into your interesting plugin and like the separation of concerns cases and tests. My question is, if there is already a mechanism to override default cases...
@mroeschke found this following https://github.com/smarie/python-pytest-cases/pull/320 `pytest` introduced (in version 3 I guess) a `python_files` configuration option allowing users to change the naming patterns pytest is using to collect tests. (https://docs.pytest.org/en/stable/reference/reference.html#confval-python_files)...
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account. - `python3 -sBm...
Following issue #229 and the discussion there, adding generators to case function requires discussion and some work: - What about pytest marks ? marking a single subcase (1 yield) /...
## Problem In a project I am working on, I recently came across a need for referring to cases with differing prefixes. That is, ``` prefix1_id(): pass prefix2_id(): pass ```...
## Background I was recently having a tough time tracking down an issue with my test set up. After a while of trying everything I could and reading the API...
`tests\cases\issues\test_issue_269.py` throws an exception during collection in most test environments with the following trace __(modulo the env name)__ ``` .nox\tests-3-9-env-pytest-latest\lib\site-packages\pluggy\_hooks.py:433: in __call__ return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) .nox\tests-3-9-env-pytest-latest\lib\site-packages\pluggy\_manager.py:112: in _hookexec...
As a temporary workaround for https://github.com/pytest-dev/pytest/issues/1368