From 02c6b97e9265bc06a2f57c1cdf236ce40f49099e Mon Sep 17 00:00:00 2001 From: "shimoda.m@nds-tyo.co.jp" Date: Wed, 3 Aug 2022 11:58:00 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20docstring=5Fparser=E3=81=AB=E3=83=89?= =?UTF-8?q?=E3=82=AD=E3=83=A5=E3=83=A1=E3=83=B3=E3=83=88=E3=82=B3=E3=83=A1?= =?UTF-8?q?=E3=83=B3=E3=83=88=E3=82=92=E8=BF=BD=E8=A8=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecs/crm-datafetch/tests/docstring_parser.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ecs/crm-datafetch/tests/docstring_parser.py b/ecs/crm-datafetch/tests/docstring_parser.py index 32ac1579..040c9b5d 100644 --- a/ecs/crm-datafetch/tests/docstring_parser.py +++ b/ecs/crm-datafetch/tests/docstring_parser.py @@ -1,3 +1,16 @@ +"""pytest-htmlでレポート出力するため、各テスト関数のドキュメントコメントのセクションを抜き出して、辞書にする +Examples: + <セクション名>:となっている部分が対象になる + \"\"\" + Cases: + テストケース + Arranges: + 準備作業 + Expects: + 期待値 + \"\"\" +""" + import re from itertools import takewhile