Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept either comma delimited or flattened channel string as valid #553

Merged
merged 2 commits into from
Apr 2, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.start_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
Loading