Skip to content

Commit 4d1ab75

Browse files
authored
Fix SignalGen commands in integration tests (#3075)
* Fix SignalGen commands in integration tests * Fix formatting
1 parent e957d40 commit 4d1ab75

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

Ref/SignalGen/SignalGen.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ namespace Ref {
5252
U32 cmdSeq /*!< The command sequence number*/
5353
) final;
5454

55-
//! Handler implementation for command SignalGen_Dp
55+
//! Handler implementation for command Dp
5656
//!
5757
//! Signal Generator Settings
5858
void Dp_cmdHandler(

Ref/SignalGen/docs/sdd.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ The `Ref::SignalGen` component has the following component diagram:
2626

2727
#### 3.1.2 Data Products
2828

29-
The `Ref::SignalGen` component will generate data products using the `SignalGen_Dp` command.
29+
The `Ref::SignalGen` component will generate data products using the `Dp` command.
3030
It will demonstrate the two different ways to request data product buffers and will generate
3131
a data product based on storing a commanded number of
3232

Ref/test/int/ref_integration_test.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -255,18 +255,16 @@ def test_active_logger_filter(fprime_test_api):
255255

256256
def test_signal_generation(fprime_test_api):
257257
"""Tests the behavior of signal gen component"""
258-
fprime_test_api.send_and_assert_command(
259-
"Ref.SG4.SignalGen_Settings", [1, 5, 0, "SQUARE"]
260-
)
258+
fprime_test_api.send_and_assert_command("Ref.SG4.Settings", [1, 5, 0, "SQUARE"])
261259
# First telemetry item should fill only the first slot of the history
262260
history = [0, 0, 0, 5]
263261
pair_history = [{"time": 0, "value": value} for value in history]
264262
info = {"type": "SQUARE", "history": history, "pairHistory": pair_history}
265-
fprime_test_api.send_and_assert_command("Ref.SG4.SignalGen_Toggle")
263+
fprime_test_api.send_and_assert_command("Ref.SG4.Toggle")
266264
fprime_test_api.assert_telemetry("Ref.SG4.History", history, timeout=6)
267265
fprime_test_api.assert_telemetry("Ref.SG4.PairHistory", pair_history, timeout=1)
268266
fprime_test_api.assert_telemetry("Ref.SG4.Info", info, timeout=1)
269-
fprime_test_api.send_and_assert_command("Ref.SG4.SignalGen_Toggle")
267+
fprime_test_api.send_and_assert_command("Ref.SG4.Toggle")
270268

271269

272270
def test_seqgen(fprime_test_api):

0 commit comments

Comments
 (0)