fix: アサーションを追加
This commit is contained in:
parent
3b2241b9c6
commit
d0e64b40ac
@ -59,6 +59,8 @@ class TestSetDatetimePeriodProcess:
|
|||||||
|
|
||||||
# 返り値の期待値チェック
|
# 返り値の期待値チェック
|
||||||
assert isinstance(actual_last_fetch_datetime, LastFetchDatetime), '最終取得日時オブジェクトクラスのインスタンスが返却される'
|
assert isinstance(actual_last_fetch_datetime, LastFetchDatetime), '最終取得日時オブジェクトクラスのインスタンスが返却される'
|
||||||
|
assert actual_last_fetch_datetime.last_fetch_datetime_from == '1999-01-01T00:00:00.000Z'
|
||||||
|
assert actual_last_fetch_datetime.last_fetch_datetime_to == '2100-12-31T23:59:59.000Z'
|
||||||
|
|
||||||
# ログの確認
|
# ログの確認
|
||||||
assert generate_log_message_tuple(log_message='I-DATE-01 [Account] のデータ取得期間設定処理を開始します') in caplog.record_tuples
|
assert generate_log_message_tuple(log_message='I-DATE-01 [Account] のデータ取得期間設定処理を開始します') in caplog.record_tuples
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user