I never came into a good unit-test strategy for non-full stack operations.
I do have a workaround.
I ended up using a bootstrapped command-line pyramid script. That starts
up and manages a "Request" for me. I don't use pyramid_tm for database
yet, so am a little unsure of this... but...
I h
I was thinking about simple solution like this:
class UnitTest(unittest.TestCase):
def setUp(self):
global TEST_DB_INITED
if not TEST_DB_INITED:
TEST_DB_INITED = True
models.init_db(load_settings())
def tearDown(self):