From f712979592b76e2266cd059f0290aabf817aa694 Mon Sep 17 00:00:00 2001 From: Cameron Devine Date: Mon, 6 May 2024 17:55:48 -0700 Subject: [PATCH] fixing the scope command message test --- test/test_scope_command.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/test/test_scope_command.py b/test/test_scope_command.py index 7c0b3f3..23f45cc 100644 --- a/test/test_scope_command.py +++ b/test/test_scope_command.py @@ -1,21 +1,21 @@ -from TEM_comms.msgs.scope import command +from TEM_comms.msgs.scope import Command from pydantic import ValidationError import pytest def test_mag(): with pytest.raises(ValidationError): - command(mag_mode="LM") + Command(mag_mode="LM") with pytest.raises(ValidationError): - command(mag=10) + Command(mag=10) - command() - command(mag_mode="LM", mag=1) + Command() + Command(mag_mode="LM", mag=1) def test_mag_mode(): with pytest.raises(ValidationError): - command(mag_mode="test", mag=1) + Command(mag_mode="test", mag=1) - command(mag_mode="LM", mag=1) - command(mag_mode="MAG2", mag=1) - command(mag_mode="MAG2", mag=1) \ No newline at end of file + Command(mag_mode="LM", mag=1) + Command(mag_mode="MAG2", mag=1) + Command(mag_mode="MAG2", mag=1) \ No newline at end of file