True sqlalchemy unit testing

tl;dr; Let s mock the sqlalchemy calls and look at the generated SQL statements. I ve read a couple of articles about testing when sqlalchemy is involved. None of them really did unit testing: they all ended up doing local integration tests by spinning up a DB of some sort. While that can work pretty well in [ ]