Also, I tried testing the postgres function which I created for polling the edit_note and edit_data tables, https://github.com/yellowHatpro/mb-exurl-ia-service/blob/master/tests/internet_archive_urls.rs#L78 this is how I proceeded: - Created a fixture file which applies to the test db created for each test function. For Internet Archive URLs I did this: https://github.com/yellowHatpro/mb-exurl-ia-service/blob/master/tests/fixtures/InternetArchiveUrls.sql - Then I tried a couple of tests for CRUD methods. - I then tested the pg notify postgres function.