Skip to main content
added 130 characters in body
Source Link
vishnu m c
  • 887
  • 1
  • 10
  • 25

I am using mysql-server and MySQLdb for accessing my database. I have not even used django models to accessing the database tables.

Now the problem comes while testing. All the django documentation is talking about the testing using django models. While testing a data, i have to insert data into the database using cursor.execute() function then i have to read from that. But this waste out my time.

Also TestCase class run all database query in transaction and my doubt is that, this will be same for mysql-server and myqldb?

I am using MySQLdb since it is faster than django models. Can anyone tell me how can i make the testing simpler ? How can i test the database in django?

I am using mysql-server and MySQLdb for accessing my database. I have not even used django models to accessing the database tables.

Now the problem comes while testing. All the django documentation is talking about the testing using django models. While testing a data, i have to insert data into the database using cursor.execute() function then i have to read from that. But this waste out my time.

I am using MySQLdb since it is faster than django models. Can anyone tell me how can i make the testing simpler ? How can i test the database in django?

I am using mysql-server and MySQLdb for accessing my database. I have not even used django models to accessing the database tables.

Now the problem comes while testing. All the django documentation is talking about the testing using django models. While testing a data, i have to insert data into the database using cursor.execute() function then i have to read from that. But this waste out my time.

Also TestCase class run all database query in transaction and my doubt is that, this will be same for mysql-server and myqldb?

I am using MySQLdb since it is faster than django models. Can anyone tell me how can i make the testing simpler ? How can i test the database in django?

Source Link
vishnu m c
  • 887
  • 1
  • 10
  • 25

Testing database in django other than django models

I am using mysql-server and MySQLdb for accessing my database. I have not even used django models to accessing the database tables.

Now the problem comes while testing. All the django documentation is talking about the testing using django models. While testing a data, i have to insert data into the database using cursor.execute() function then i have to read from that. But this waste out my time.

I am using MySQLdb since it is faster than django models. Can anyone tell me how can i make the testing simpler ? How can i test the database in django?