Re: [SQLObject] how do i run the unit tests?
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Victor Ng <cra...@gm...> - 2005-09-26 15:25:40
|
Success! thanks, vic On 9/26/05, Philippe Normand <ph...@ba...> wrote: > > Le lundi 26 septembre 2005 =E0 01:22 -0400, Victor Ng a =E9crit : > > Hi all, > > > > I've been using SQLObject since the bad old days of 0.5.4 and we're > > actually using a rewrite of it for a custom ERP system. > > > > There are a bunch of changes that I'd like to see if I can get merged > > back into the mainline trunk of SQLObject, but I'm having trouble with > > getting my tests to run. > > > > I think I've got all the dependencies sorted out - setuptools 0.6a4, > > pysqlite 2.0.4, py-dist from codespeak and sqlobject from the SVN > > trunk all seem to be installed properly. > > > > How do I get simple tests to run? > > > > First be sure to eval env.py (from dist-py) so that your PYTHONPATH and > friends are correctly set. > > Then go to sqlobject, if there's no data/ directory, create one (it will > contain the sqlite db and some other stuff). > > Then simply run py.test and cross the fingers :-) That's how i do... > There's probably one way to customize the db backend to use (instead of > sqlite) but i've gone so far yet. > > Philippe > > -- "Never attribute to malice that which can be adequately explained by stupidity." - Hanlon's Razor |