From: Ben Scherrey <scherrey@pr...> - 2005-02-14 02:22:58
I'm having a frustrating time getting into SQLObject. Got the latest
SQLObject-trunk-postgres-7.2 code. I managed to get two versions of
SQLite (you don't specify what you're using so I have 2.8.15 & 3.0.8)
and the latest SVN of py.test's code but I can get the test code to run.
I run 'python dbtest.py' but it complains it cannot open the database
file. Its speaking about dbs_data.tmp which doesn't exist but I'm
guessing the test code should create on its own. TESTDB is defined as a
full URI pointing to an existing Postgres 8 database I created. Not sure
where to go next.
-- Ben Scherrey
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 ----------
eval `python /usr/local/src/Python/py-dist/py/env.py`
for test in "$@"; do
py.test "$test" >"$test".log 2>"$test".err
exec dropdb test
---------- /end run tests ----------
and use it this way:
Oleg Broytmann http://phd.pp.ru/ phd@...
Programmers don't die, they just GOSUB without RETURN.