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.
我有一个Django单元测试,我想在其中放置打印语句用于调试目的,但显然django正在抑制它们。我怎样才能打印变量的值?我可能能够破解断言等,但想知道人们如何做到这一点。
1 个解决方案
#1
7
You just can increase the verbosity with -v 3
您可以使用-v 3增加详细程度
#1
7
You just can increase the verbosity with -v 3
您可以使用-v 3增加详细程度