Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug Django unit tests?

I have a Django unit test, and I want to put print statements in it for debugging purposes but apparently django is suppressing them. How else can I print the value of a variable? I may be able to hack around with asserts, etc. but wondering how people do this.

like image 221
Nima Avatar asked May 13 '13 23:05

Nima


1 Answers

You just can increase the verbosity with -v 3

like image 140
Lioman Avatar answered Oct 19 '22 02:10

Lioman