On Fri, Jan 29, 2016 at 02:50:07PM -0800, JAMES DAMILD ETIENNE wrote:
> I have a possgres database with 5 shemas , it connects very well to it , 
> but when truing to do unit test on my models or view , the default table 
> created in sqllite3 is saysing  that on of my table is not there :
> 
>  return Database.Cursor.execute(self, query, params)
> OperationalError: no such table: jamestable
> 
> any help please  ?
> thank you

In general, it's not a good idea to run tests against a different
database system than the one you're using in production. If your live
application runs with Postgres, then use Postgres for your tests, too.
Just create a new test database, and point the test runner to that.

If you use a different SQL implementation for your tests, sooner or
later, your application will fail in production even though the same
feature will work just fine in your tests. Every SQL implementation is
different, sometimes in obvious ways, sometimes in subtle ones. Do
yourself a favor and learn from the legions of people who learned this
lesson the hard way.

As far as I know, SQLite does not have any support for multiple
schemas in a single database. Therefore I cannot imagine how your code
could ever work against SQLite, if the code expects a schema to be
there.

Good luck,

Michal

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/20160204161712.GM19381%40koniiiik.org.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: Digital signature

Reply via email to