3 ms·
> Having extra dependencies for the tests What do you mean, extra dependencies? The only difference between pytest and unittest in this regard is that tests us
by codethief 6y ago
> Having extra dependencies for the tests
What do you mean, extra dependencies? The only difference between pytest and unittest in this regard is that tests using unittest declare their dependency explicitly, using an import[0]. Most pytest tests still implicitly require pytest as a dependency, though. (Think of fixtures etc. etc.)
I actually like unittest's approach here – in my book, explicit is better than implicit.
- GlennS 6y agoI believe they mean that you need to install the pytest package, whereas unittest comes with Python.