parameterized icon indicating copy to clipboard operation
parameterized copied to clipboard

Parameterized testing with any Python test framework

Results 47 parameterized issues
Sort by recently updated
recently updated
newest added

The unittest module has a mock object library since 3.3

I'm trying to tun the `parameterized_class` as in the documentation, but according to the code, its necessary to remove all `test_` methods, leaving me with a class with 0 tests...

It does look that this is the same issue as: #37 I just faced that very same issue: `TypeError: don't know how to make test from: None` using Django==3.2.14, Python=3.9.5,...

needs-example

This test leads to a pytest-warning on Pytest 3.0+: ``` py from nose_parameterized import parameterized @parameterized([ ('foo',) ]) def test_foo(foo): pass ``` Like: ``` ============================================================== pytest-warning summary ============================================================== WC1 /path/to/test_foo.py...

I was wondering if its possible to inject decorators to expanded functions. ```python # this won't work @inject_a_flag_to_setup @parameterized.expand([1,2,3]) def foo(x): return x ``` ```python # suggestion @parameterized.expand([1,2,3], decorators=[inject_a_flag_to_setup]) def...

Useful if you want to perform some action on the dynamically created classes immediately after (access/change some attribute, mark it with pytest, etc).

If I have a parameterized test class whose test methods are inherited: ```py class FooTestMethods: def test_foo(self): ... @parameterized_class(...) class FooTests(FooTestMethods, unittest.TestCase): pass ``` Then it appears that while #73...

https://docs.python.org/3.13/whatsnew/3.13.html#other-language-changes https://github.com/python/cpython/issues/81283 You can reproduce the original failure and verify this change by running ``` tox -e py313-unit ``` but you will need to apply https://github.com/wolever/parameterized/pull/169 first.

Hi 👋 `parametrized` was removed today from PyPi by @samupl. Users of `parameterized` shouldn't get those issues any more. Proof: ![Zrzut ekranu 2023-09-12 o 21 35 01](https://github.com/macieyng/parameterized/assets/82878433/77b2a6a9-9e5f-4c58-a723-d0f5f76f02b8)