0

Can we catch these arguments using kwargs?

@pytest.parameterize("arg1, arg2", [(1, 2), (3,4)])
def test_function(**kwargs):
     ...
  • Yes, https://stackoverflow.com/questions/1769403/what-is-the-purpose-and-use-of-kwargs – Devang Sanghani Feb 04 '22 at 08:11
  • Does this answer your question? [Using parametrize for keyword arguments in pytest](https://stackoverflow.com/questions/23418844/using-parametrize-for-keyword-arguments-in-pytest) – Romain Feb 04 '22 at 12:08

0 Answers0