Skip to content

Commit

Permalink
black 23.0 を適用
Browse files Browse the repository at this point in the history
  • Loading branch information
chutaro committed Apr 5, 2023
1 parent 1db7c5c commit cfb5243
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
@pytest.mark.real
def test_cdis_exec_err():
# ===== 以下の 2 コマンドでチェックする =====
# それぞれについて RT/TL で実行する
# それぞれを RT/TL で実行する
# 送信するコマンドと想定されるエラーは以下
#
# Cmd_TMGR_UPDATE_UNIXTIME
Expand Down Expand Up @@ -86,8 +86,8 @@ def check_cdis_exec_err(cmd_id, params, exec_sts_expected, err_code_expected):
assert tlm_EL["EL.TLOGS.LOW.EVENTS3.NOTE"] == err_code_expected
assert tlm_EL["EL.TLOGS.LOW.EVENTS2.GROUP"] == c2a_enum.EL_CORE_GROUP_CDIS_EXEC_ERR_STS
assert tlm_EL["EL.TLOGS.LOW.EVENTS2.LOCAL"] == cmd_id
idx_gs, r = divmod(tlm_EL["EL.TLOGS.LOW.EVENTS2.NOTE"], 2 ** 24) # 上位 8bit
exec_sts, err_code = divmod(r, 2 ** 16) # 次の 8bit と下位 16bit
idx_gs, r = divmod(tlm_EL["EL.TLOGS.LOW.EVENTS2.NOTE"], 2**24) # 上位 8bit
exec_sts, err_code = divmod(r, 2**16) # 次の 8bit と下位 16bit
assert exec_sts == exec_sts_expected
assert err_code == err_code_expected

Expand All @@ -97,8 +97,8 @@ def check_cdis_exec_err(cmd_id, params, exec_sts_expected, err_code_expected):
assert tlm_EL["EL.TLOGS.LOW.EVENTS1.NOTE"] == err_code_expected
assert tlm_EL["EL.TLOGS.LOW.EVENTS0.GROUP"] == c2a_enum.EL_CORE_GROUP_CDIS_EXEC_ERR_STS
assert tlm_EL["EL.TLOGS.LOW.EVENTS0.LOCAL"] == cmd_id
idx_tl, r = divmod(tlm_EL["EL.TLOGS.LOW.EVENTS0.NOTE"], 2 ** 24) # 上位 8bit
exec_sts, err_code = divmod(r, 2 ** 16) # 次の 8bit と下位 16bit
idx_tl, r = divmod(tlm_EL["EL.TLOGS.LOW.EVENTS0.NOTE"], 2**24) # 上位 8bit
exec_sts, err_code = divmod(r, 2**16) # 次の 8bit と下位 16bit
assert exec_sts == exec_sts_expected
assert err_code == err_code_expected

Expand Down

0 comments on commit cfb5243

Please sign in to comment.