4 ms·
Shouldn't the company = YourCompany() boilerplate at the top of each test method be factored out into def setUp(): self.company = YourCompany()
by mccutchen 16y ago
Shouldn't the
company = YourCompany()
boilerplate at the top of each test method be factored out into
def setUp():
self.company = YourCompany()
- diN0bot 16y agomos def! it's a small thing, but maybe it says something about what he thinks about and values. seems like abstraction and code maintability and extensibility are not as high on the list as testing. tests are super important, of course, but anyway can write tests. quality, IMHO and in all code including tests, comes from good design.