iobis / pyobis

OBIS Python client
https://iobis.github.io/pyobis
MIT License
14 stars 10 forks source link

use unittest class and set up more specific tests #83

Closed 7yl4r closed 1 year ago

7yl4r commented 2 years ago

I usually group my tests into classes using unittest.

This is nice organizationally and unittest offers some functionality that you don't get by just using assert.

It did increase the line count on the tests by a lot. Some of these test methods might be overkill when organized this way. I usually write tests that test for one thing only, but the existing tests check for a lot of little things. That isn't a bad thing, I am wondering how to find a middle ground between the two approaches.