[FastAPI] setup_test_db sanitization pass on pytests
In some of our original pytests (most of them), we specify string table names to setup_test_db
in order to remove records from target tables.
We can do this without specifying hardcoded strings through the declarative API:
from aurweb.models.user import User
from aurweb.testing import setup_test_db
# Currently
setup_test_db("Users")
# Should be
setup_test_db(User.__tablename__)
We need to make a pass across the pytest base and fix all of these so we aren't hardcoding the tables.