Open lukasjuhrich opened 9 years ago
Are there (unit-)tests to verify that refactorings do not introduce new bugs?
No, not at the moment, but the amount of usage of these methods is rather small.
I believe everything in this folder could be moved to one level above. utils/__init__.py
can be named misc.py
.
Concerning unittests, I urge whoever might resolve this issue to ALWAYS do the following:
@janLo By the way, concerning “are there unittests”, let me give you the following update:
In my current major refactor of the mail_utils
, there were some unit tests and some primitive integration tests (submitting the contact forms). Because of the refactoring however, the code became a lot more modular, which lead to a significant extension of the unittests and an increase in logical coverage.
(Yay, I improved over the last year :smile:)
The package sipa/utils could be cleaned up a bit, especially these functions hanging around in
__init__.py
coud be moved somewhere better.