* set debug, test, and primary_db env variables based on context * remove unnecessary print * also use pytest.ini for some tests run straight from pytest at the CLI