bedstuystrong / automation_prime

0 stars 5 forks source link

Refactor config handling and airtable polling logic. #43

Closed leifwalsh closed 3 years ago

leifwalsh commented 3 years ago

This pushes config loading out of business logic so it can be injected in tests, without mocking. Also makes it clearer when config is loaded in main functions, what's being loaded, and where it's going.

I have more I want to do in this direction, but I want to go in digestible chunks, and I think I'm at an intermediate point where it's a bit cleaner in most places, a little confusing in a couple places I haven't gotten to yet, but I believe everything still functions.