How to add test cases with different types of arguments?

Hey, I want to add tests as asked for here:

My issue is that I’m not sure what’s the best way to test a function with different types of arguments. I could think up a few different types and test them. Or I could use something like hypothesis or hypothesis-auto for it. What do you folks think is the best way of doing that?

./tests/ has tests that calls jar.update_cookies() with SimpleCookie instance.
I believe @serhiy-storchaka asked for tests that sends another types that are covered by LooseCookies type definition.

Ok, so just the types defined in the typedefs. I thought maybe he meant for all sorts of types to test for exactly what it accepts. I’ll do that now so

Testing is always a compromise between full possible situations coverage and combinatoric explosion :slight_smile:

1 Like