wolever / parameterized

Parameterized testing with any Python test framework
Other
833 stars 105 forks source link

Added "is_parametrized" flag to the parametrized classes. #133

Closed lchojnacki closed 1 year ago

lchojnacki commented 2 years ago

In my project I need to recognize whether the unittest.TestCase is parametrized or not. The easiest way to do it is adding is_parametrized flag to the base class.

wolever commented 1 year ago

Thank you for taking the time to write up this PR. Unfortunately I'm not comfortable potentially breaking backwards compatibility by writing unexpected attributes to classes, but:

For your project, possibly consider writing a wrapper around parameterize_class?