Skip to content

Commit

Permalink
Fix python tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jmthomas committed Dec 11, 2023
1 parent 1962b9f commit b1ed7db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openc3/python/openc3/script/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def build_cmd(*args, **kwargs):
build_command("TGT CMD with PARAM1 val, PARAM2 val")
build_command('TGT','CMD',{'PARAM1'=>val,'PARAM2'=>val})"""
extract_string_kwargs_to_args(args, kwargs)
return getattr(openc3.script.API_SERVER, "build_command")(*args)
return getattr(openc3.script.API_SERVER, "build_cmd")(*args)


# build_command is DEPRECATED
Expand Down
2 changes: 1 addition & 1 deletion openc3/python/test/script/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def cmd_no_checks(*args, **kwargs):
return "INST", "CLEAR", {}

# Duplicate the return in cmd_api.py
def get_command(target_name, cmd_name, scope):
def get_cmd(target_name, cmd_name, scope):
return TargetModel.packet(target_name, cmd_name, type="CMD", scope=scope)

# Duplicate the return in cmd_api.py
Expand Down

0 comments on commit b1ed7db

Please sign in to comment.