File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 11import os .path
22import warnings
33import ast
4+ import json
45
56from tests .nodes import convert_node
67
@@ -563,3 +564,23 @@ def is_ast_equal(sample, template):
563564 return True
564565 except TemplateMismatch :
565566 return False
567+
568+
569+ def debug_test_case (node ):
570+ """Print JSON parser nodes
571+
572+ Arguments:
573+ node {[type]} -- [description]
574+ """
575+ print (json .dumps (node .assign_ ().n , indent = 4 ))
576+ print (json .dumps (node .for_ ().n , indent = 4 ))
577+ print (json .dumps (node .returns_call ().n , indent = 4 ))
578+
579+
580+ def debug_test_case_class (node , test_method ):
581+ """Print JSON parser nodes for class properties
582+
583+ Arguments:
584+ node {[type]} -- [description]
585+ """
586+ print (json .dumps (node .def_args_ (test_method ).n , indent = 4 ))
You can’t perform that action at this time.
0 commit comments