Updated test_utility.py to use pytest and mock out smptlib rather than sending emails. This is part of a larger effort to migrate the unit tests over to pytest. pytest offers a simpler way to write unit tests and re-use test fixtures over the standard unittest module in Python.
Follow ups
There will be a separate PR for the rest of the tests as I work through them.
Summary
Updated
test_utility.py
to usepytest
and mock outsmptlib
rather than sending emails. This is part of a larger effort to migrate the unit tests over topytest
.pytest
offers a simpler way to write unit tests and re-use test fixtures over the standard unittest module in Python.Follow ups
There will be a separate PR for the rest of the tests as I work through them.