Skip to content

Commit 2645526

Browse files
committed
print SQL on error in tests
1 parent 9e6896b commit 2645526

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

django_enum/tests/tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -950,6 +950,7 @@ def test_serialization(self):
950950
from django.db import connection
951951
from pprint import pprint
952952
pprint(connection.queries)
953+
raise
953954

954955
serialized = serializers.serialize('json', self.MODEL_CLASS.objects.all())
955956

0 commit comments

Comments
 (0)