tests
tko22 opened this issue · 2 comments
tko22 commented
add in common functions and maybe add in continuous integration?
tko22 commented
stub SQLAlchemy and its objects or make it reference a sqlite file that's create as a tempfile.
tko22 commented
opted for using sqlite in unittests. Yes, it's not exactly the same as postgres and may behave a little differently, but generally we are testing for the logic in each of the endpoints and use SQLAlchemy to interact with the database, so the behavior in that aspect shouldn't change too much, although an app should be tested in the same environment as production. However, I'd say you won't have to do that for unittests, especially since the other option would be to stub out SQLAlchemy, which may be a little difficult for many people.