python-pytest-cases icon indicating copy to clipboard operation
python-pytest-cases copied to clipboard

Separate test code from test cases in pytest.

Results 65 python-pytest-cases issues
Sort by recently updated
recently updated
newest added
trafficstars

See - https://github.com/smarie/python-genbadge/blob/main/.github/workflows/ghpages.yml - https://github.com/smarie/python-makefun/pull/117

I have several cases in a class, all of them have a fixture in common, lets call it `fixture1` something like. ```python @pytest.fixture def fixture1(): return "dummy-fixture1" class CaseFixture: def...

question
has_workaround

I believe this has something to do with `idgen` at some point but when you do the following ```python class SomeCases: @parametrize(arg1=[{"set_value_1", "set_value_2"}, {}, {"set_value_1"}) def case_some_case(arg1: set[str]) -> set[str]:...

needs_reproducible_example

If a test file contains both an absolute import and a relative import in `parametrize_with_cases` ```python """This is module foo.test_bar""" from foo.bar_data import Var @parametrize_with_cases("a", cases=".bar_data ") def test_bar(a): pass...

bug

### GitHub Actions Version Updates * **[actions/upload-artifact](https://github.com/actions/upload-artifact)** published a new release **[v4.5.0](https://github.com/actions/upload-artifact/releases/tag/v4.5.0)** on 2024-12-17T22:02:43Z * **[actions/setup-python](https://github.com/actions/setup-python)** published a new release **[v5.3.0](https://github.com/actions/setup-python/releases/tag/v5.3.0)** on 2024-10-24T14:15:17Z * **[actions/download-artifact](https://github.com/actions/download-artifact)** published a new release **[v4.1.8](https://github.com/actions/download-artifact/releases/tag/v4.1.8)**...