Re: [SQLObject] Trying to get testing operational.
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Oleg B. <ph...@ma...> - 2005-02-14 08:58:23
|
On Sun, Feb 13, 2005 at 09:22:46PM -0500, Ben Scherrey wrote: > SQLite (you don't specify what you're using so I have 2.8.15 & 3.0.8) I installed both, too. But now I use only 3.0.8 with PySQLite 1.1.6. > and the latest SVN of py.test's code but I can get the test code to run. > I run 'python dbtest.py' You should run py.test program. I use the following shell script to do run tests: ---------- run tests ---------- #! /bin/sh CWD="`pwd`" eval `python /usr/local/src/Python/py-dist/py/env.py` cd ../.. PYTHONPATH="`pwd`" export PYTHONPATH cd "$CWD" TESTDB=postgres:/test?debug=1 export TESTDB createdb test for test in "$@"; do echo "$test" py.test "$test" >"$test".log 2>"$test".err done exec dropdb test ---------- /end run tests ---------- and use it this way: cd sqlobject/tests run-tests test_basic.py or run-tests test_*.py Oleg. -- Oleg Broytmann http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |