Skip to content

Commit

Permalink
tools: enable to reset class level indentation for mocks gen
Browse files Browse the repository at this point in the history
  • Loading branch information
ph4r05 committed Sep 17, 2018
1 parent dc6f84a commit 66786f9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/build_mocks
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ def split_to_parts(line, mod_desc=None):
global current_class
global current_method

if line.startswith("# mock:global"):
current_class = None
current_indent = 0
return

if line.startswith("class "):
current_class = line[6:].split("(")[0].strip(":")
current_indent = 0
Expand Down

0 comments on commit 66786f9

Please sign in to comment.