2 ms·
My guess is that they use parameterized tests. With those, adding a dozen new tests takes only very slightly longer than adding one. Here's the kind of thing I
by simonw 3y ago
My guess is that they use parameterized tests. With those, adding a dozen new tests takes only very slightly longer than adding one.
Here's the kind of thing I mean: https://github.com/simonw/datasette/blob/45b88f2056e0a4da204b50f5e17ba953fcb51865/tests/test_internals_urls.py#L11-L25 https://github.com/simonw/datasette/blob/45b88f2056e0a4da204... - pytest displays that as 5 passing tests.
- pydry 3y agoWith hypothesis you can add 50,000 new "tests" in seconds :/ I dont think it's a very honest way of putting it though. It'd be more accurate to say that youve got one test and youve parameterized it.