I'm working on a project with pyramid and there's certain workflow I used in pylons I would like to bring into the new framework but I'm not sure how to do it exactly: I build all my tests with nose and I keep my development and testing dbs separate. With pylons I would define the testing db uri in test.ini and use the --with-pylons option to make sure all tables were recreated before the first test was run (something I learned from pylons book) and my development tables remained intact. In pyramid I have the "initialize_sql" method in models/__init__.py and although I see I can pass the db uri I'm not sure how to make the application (and/or nosetests) aware I'm running tests and I want to use a separate db for that matter (besides duplicating the db initializing routine in my tests/__init__.py, hardcoding the db uri and passing the test session instance to every test file, something I find ugly an prone to errors). How are you guys doing in pyramid with this kind of situations?
TIA, Mariano. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
