WS-2751: Fix WS utilities unit tests
This work involved:
- Writing some unit tests for database methods (
database.py
) to learn about writing unit tests. - Bug fixes and formatting changes in the metadata wrester (
aat_wrest.py
). - Formatting changes in metadata wrester tests (
test_metadata_wrester.py
). - Rewriting unit tests for
core_sampler.py
, including putting them in a test class. - Creating a test class for
test_row_writer.py
, putting existing test methods into this test class, and formatting the file so it passes Pylint and 'black' code checks. - Modifications of how testing is done in
test_contacts_wrester.py
andtest_observation_wrester.py
. - A slight modification to
contacts_wrester
to allow the passing in of a cursor (used in unit tests).
Edited by Daniel Lopez Sanders