firelab / windninja-mobile

Mobile application for WindNinja
0 stars 0 forks source link

Migrate test_utility.py to pytest. #167

Closed wranglerr closed 5 years ago

wranglerr commented 5 years ago

Summary

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.

fspataro-zz commented 5 years ago

@ldmalott looks good. thanks!