| View previous topic :: View next topic |
| Author |
Message |
jens Administrator
Joined: 12 Oct 2005 Posts: 972 Location: duisburg, germany
|
|
| Back to top |
|
 |
jens Administrator
Joined: 12 Oct 2005 Posts: 972 Location: duisburg, germany
|
|
| Back to top |
|
 |
jens Administrator
Joined: 12 Oct 2005 Posts: 972 Location: duisburg, germany
|
|
| Back to top |
|
 |
jens Administrator
Joined: 12 Oct 2005 Posts: 972 Location: duisburg, germany
|
Posted: Tue 25 Mar, 2008 15:09 Post subject: |
|
|
@rantaaho: I have a problem. I need a way to make some teste with not existing database tables. But the tests insert always the tables. I tried to delete the tables, but this failed:
| Quote: | Error: Database :memory: couldn't be flushed. Possible reasons:
* The database isn't running or isn't configured correctly.
* At least one of the expected database tables doesn't exist.
* The SQL was invalid.
Hint: Look at the output of 'django-admin.py sqlflush'. That's the SQL this command wasn't able to run.
The full error: no such table: PyLucid_style |
I can't ignore the error with try...except.
I also tried something like this:
| Code: | | cursor.execute(u"DROP TABLE IF EXISTS django_session;") |
But this failed with the same error from above.
EDIT: It's for the new middleware: http://trac.pylucid.net/changeset/1505
see also: http://trac.pylucid.net/ticket/87#comment:3
The existing unittest is here: http://trac.pylucid.net/browser/trunk/pylucid/tests/install_section.py _________________
http://www.jensdiemer.de | http://www.htfx.de | http://www.python-forum.de
|
|
| Back to top |
|
 |
jens Administrator
Joined: 12 Oct 2005 Posts: 972 Location: duisburg, germany
|
|
| Back to top |
|
 |
jens Administrator
Joined: 12 Oct 2005 Posts: 972 Location: duisburg, germany
|
|
| Back to top |
|
 |
|