Skip to content

Commit

Permalink
apply black
Browse files Browse the repository at this point in the history
  • Loading branch information
meltingrabbit committed Jun 5, 2022
1 parent ae9027b commit a118ed2
Showing 1 changed file with 8 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1705,32 +1705,20 @@ def test_event_handler_by_event_group_func():
init_el_and_eh()

# Cmd_EH_INIT_RULE_BY_EVENT_GROUP
ope.send_rt_cmd(
c2a_enum.Cmd_CODE_EH_INACTIVATE_RULE,
(EH_RULE_TEST0,)
)
ope.send_rt_cmd(
c2a_enum.Cmd_CODE_EH_SET_RULE_COUNTER,
(EH_RULE_TEST2, 1)
)
ope.send_rt_cmd(c2a_enum.Cmd_CODE_EH_INACTIVATE_RULE, (EH_RULE_TEST0,))
ope.send_rt_cmd(c2a_enum.Cmd_CODE_EH_SET_RULE_COUNTER, (EH_RULE_TEST2, 1))
assert "SUC" == wings.util.send_rt_cmd_and_confirm(
ope,
c2a_enum.Cmd_CODE_EH_INIT_RULE_BY_EVENT_GROUP,
(EL_GROUP_TEST_EH,),
c2a_enum.Tlm_CODE_HK,
)

ope.send_rt_cmd(
c2a_enum.Cmd_CODE_EH_SET_TARGET_ID_OF_RULE_TABLE_FOR_TLM,
(EH_RULE_TEST0,)
)
ope.send_rt_cmd(c2a_enum.Cmd_CODE_EH_SET_TARGET_ID_OF_RULE_TABLE_FOR_TLM, (EH_RULE_TEST0,))
tlm_EH = download_eh_tlm()
assert tlm_EH["EH.TARTGET_RULE.COUNTER"] == 0
assert tlm_EH["EH.TARTGET_RULE.SETTINGS.IS_ACTIVE"] == "ACTIVE"
ope.send_rt_cmd(
c2a_enum.Cmd_CODE_EH_SET_TARGET_ID_OF_RULE_TABLE_FOR_TLM,
(EH_RULE_TEST2,)
)
ope.send_rt_cmd(c2a_enum.Cmd_CODE_EH_SET_TARGET_ID_OF_RULE_TABLE_FOR_TLM, (EH_RULE_TEST2,))
tlm_EH = download_eh_tlm()
assert tlm_EH["EH.TARTGET_RULE.COUNTER"] == 0
assert tlm_EH["EH.TARTGET_RULE.SETTINGS.IS_ACTIVE"] == "ACTIVE"
Expand All @@ -1742,16 +1730,10 @@ def test_event_handler_by_event_group_func():
(EL_GROUP_TEST_EH,),
c2a_enum.Tlm_CODE_HK,
)
ope.send_rt_cmd(
c2a_enum.Cmd_CODE_EH_SET_TARGET_ID_OF_RULE_TABLE_FOR_TLM,
(EH_RULE_TEST0,)
)
ope.send_rt_cmd(c2a_enum.Cmd_CODE_EH_SET_TARGET_ID_OF_RULE_TABLE_FOR_TLM, (EH_RULE_TEST0,))
tlm_EH = download_eh_tlm()
assert tlm_EH["EH.TARTGET_RULE.SETTINGS.IS_ACTIVE"] == "INACTIVE"
ope.send_rt_cmd(
c2a_enum.Cmd_CODE_EH_SET_TARGET_ID_OF_RULE_TABLE_FOR_TLM,
(EH_RULE_TEST2,)
)
ope.send_rt_cmd(c2a_enum.Cmd_CODE_EH_SET_TARGET_ID_OF_RULE_TABLE_FOR_TLM, (EH_RULE_TEST2,))
tlm_EH = download_eh_tlm()
assert tlm_EH["EH.TARTGET_RULE.SETTINGS.IS_ACTIVE"] == "INACTIVE"

Expand All @@ -1762,16 +1744,10 @@ def test_event_handler_by_event_group_func():
(EL_GROUP_TEST_EH,),
c2a_enum.Tlm_CODE_HK,
)
ope.send_rt_cmd(
c2a_enum.Cmd_CODE_EH_SET_TARGET_ID_OF_RULE_TABLE_FOR_TLM,
(EH_RULE_TEST0,)
)
ope.send_rt_cmd(c2a_enum.Cmd_CODE_EH_SET_TARGET_ID_OF_RULE_TABLE_FOR_TLM, (EH_RULE_TEST0,))
tlm_EH = download_eh_tlm()
assert tlm_EH["EH.TARTGET_RULE.SETTINGS.IS_ACTIVE"] == "ACTIVE"
ope.send_rt_cmd(
c2a_enum.Cmd_CODE_EH_SET_TARGET_ID_OF_RULE_TABLE_FOR_TLM,
(EH_RULE_TEST2,)
)
ope.send_rt_cmd(c2a_enum.Cmd_CODE_EH_SET_TARGET_ID_OF_RULE_TABLE_FOR_TLM, (EH_RULE_TEST2,))
tlm_EH = download_eh_tlm()
assert tlm_EH["EH.TARTGET_RULE.SETTINGS.IS_ACTIVE"] == "ACTIVE"

Expand Down

0 comments on commit a118ed2

Please sign in to comment.