Skip to content
Snippets Groups Projects
Commit 34cca770 authored by Nicolas KAROLAK's avatar Nicolas KAROLAK
Browse files

fix(tester): docstring search

parent 9bcefdb6
No related branches found
No related tags found
No related merge requests found
......@@ -153,10 +153,18 @@ class Tester():
content = fo.read()
description = ''
if path.endswith('.py'):
start = content.find('\'\'\'')
start = (
content.find('\'\'\'')
if content.find('\'\'\'') != -1
else content.find('"""')
)
if start > 0:
start += 3
end = content.find('\'\'\'', start)
end = (
content.find('\'\'\'', start)
if content.find('\'\'\'', start) != -1
else content.find('"""', start)
)
if end > 0:
description = content[start:end]
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment