refactor: walk_throughにレベル変更したログメッセージのチェックを追加
This commit is contained in:
parent
d17c288080
commit
e6389bbd1b
@ -117,7 +117,7 @@ def test_walk_through(s3_test, s3_client, monkeypatch, caplog):
|
|||||||
# ループ前のログ確認
|
# ループ前のログ確認
|
||||||
assert 'I-CTRL-01 CRMデータ取得処理を開始します' in log_messages
|
assert 'I-CTRL-01 CRMデータ取得処理を開始します' in log_messages
|
||||||
assert 'I-CTRL-02 データ取得準備処理呼び出し' in log_messages
|
assert 'I-CTRL-02 データ取得準備処理呼び出し' in log_messages
|
||||||
assert_prepare_process_log(log_messages, now)
|
assert_prepare_process_log(log_messages, now, path.basename(object_info_list[0]))
|
||||||
assert 'I-CTRL-03 取得対象オブジェクトのループ処理開始' in log_messages
|
assert 'I-CTRL-03 取得対象オブジェクトのループ処理開始' in log_messages
|
||||||
# オブジェクト情報を取得する(diff)
|
# オブジェクト情報を取得する(diff)
|
||||||
object_info_list = object_info_files[0]
|
object_info_list = object_info_files[0]
|
||||||
@ -206,9 +206,10 @@ def test_walk_through(s3_test, s3_client, monkeypatch, caplog):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
def assert_prepare_process_log(log_messages, now):
|
def assert_prepare_process_log(log_messages, now, object_info_list_filename):
|
||||||
assert 'I-PRE-01 データ取得準備処理を開始します' in log_messages
|
assert 'I-PRE-01 データ取得準備処理を開始します' in log_messages
|
||||||
assert f'I-PRE-02 データ取得処理開始日時:{now}' in log_messages
|
assert f'I-PRE-02 データ取得処理開始日時:{now}' in log_messages
|
||||||
|
assert f'I-PRE-03 CRM_取得オブジェクト情報ファイルの取得開始します ファイルパス:[s3://{CONFIG_BUCKET}/{OBJECT_INFO_FOLDER}/{object_info_list_filename}]' in log_messages
|
||||||
assert 'I-PRE-09 データ取得準備処理を終了します' in log_messages
|
assert 'I-PRE-09 データ取得準備処理を終了します' in log_messages
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user