Skip to content

Commit

Permalink
Accept either comma delimited or flattened channel string as valid (#553
Browse files Browse the repository at this point in the history
)

* Accept either comma delimited or flattened channel string as valid

* Fix copy/paste error
  • Loading branch information
texasaggie97 authored Apr 2, 2024
1 parent b73c3ac commit 3fdfbee
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions tests/component/task/test_triggers.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,11 @@ def test___start_trigger___cfg_anlg_multi_edge_start_trig___no_errors(
trigger_level_array=trig_levels,
)

assert (
sim_9775_ai_voltage_multi_edge_task.triggers.start_trigger.anlg_multi_edge_srcs
== flatten_trigger_sources
)
# AB#2698564 - For now we are accepting either format of the trigger sources
assert sim_9775_ai_voltage_multi_edge_task.triggers.start_trigger.anlg_multi_edge_srcs in [
", ".join(trigger_sources),
flatten_trigger_sources,
]
assert (
sim_9775_ai_voltage_multi_edge_task.triggers.start_trigger.anlg_multi_edge_slopes
== trig_slopes
Expand Down Expand Up @@ -273,10 +274,11 @@ def test___reference_trigger___cfg_anlg_multi_edge_ref_trig___no_errors(
trigger_level_array=trig_levels,
)

assert (
sim_9775_ai_voltage_multi_edge_task.triggers.reference_trigger.anlg_multi_edge_srcs
== flatten_trigger_sources
)
# AB#2698564 - For now we are accepting either format of the trigger sources
assert sim_9775_ai_voltage_multi_edge_task.triggers.reference_trigger.anlg_multi_edge_srcs in [
", ".join(trigger_sources),
flatten_trigger_sources,
]
assert (
sim_9775_ai_voltage_multi_edge_task.triggers.reference_trigger.pretrig_samples
== pretrig_samples
Expand Down

0 comments on commit 3fdfbee

Please sign in to comment.