Skip to content

Commit

Permalink
ran afmt
Browse files Browse the repository at this point in the history
  • Loading branch information
robamu committed Apr 5, 2022
1 parent 1fb6b1c commit 306c1b8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
4 changes: 1 addition & 3 deletions src/tests/backend_mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@


def create_backend_mock(tm_handler: CcsdsTmHandler) -> TmTcHandler:
tmtc_printer = FsfwTmTcPrinter(
display_mode=DisplayMode.LONG, file_logger=None
)
tmtc_printer = FsfwTmTcPrinter(display_mode=DisplayMode.LONG, file_logger=None)
com_if = create_communication_interface_default(
com_if_key=CoreComInterfaces.DUMMY.value,
json_cfg_path="tmtc_config.json",
Expand Down
3 changes: 1 addition & 2 deletions src/tests/test_printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
log_raw_pus_tc,
log_raw_pus_tm,
get_current_raw_file_name,
create_tmtc_logger
create_tmtc_logger,
)

from tests.hook_obj_mock import create_hook_mock_with_srv_handlers
Expand Down Expand Up @@ -95,7 +95,6 @@ def test_print_functions(self):
)
"""


service_17_command = pack_service_17_ping_command(ssc=0, apid=42)
self.tmtc_printer.print_telecommand(
tc_packet_obj=service_17_command, tc_packet_raw=service_17_command.pack()
Expand Down
5 changes: 4 additions & 1 deletion src/tests/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ def test_tmtc_runner(self):

frontend_mock = create_frontend_mock()
run_tmtccmd(
use_gui=True, run_setup=False, tmtc_backend=backend_mock, tmtc_frontend=frontend_mock
use_gui=True,
run_setup=False,
tmtc_backend=backend_mock,
tmtc_frontend=frontend_mock,
)
frontend_mock.start.assert_called_once()
qt_app = frontend_mock.start.call_args[0][0]
Expand Down
2 changes: 0 additions & 2 deletions src/tmtccmd/utility/tmtc_printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,6 @@ def _handle_short_tc_print(self, tc_packet_obj: PusTelecommand):
LOGGER.info(self.__print_buffer)
"""



def _handle_long_tc_print(self, tc_packet_obj: PusTelecommand):
"""
Long TC print
Expand Down

0 comments on commit 306c1b8

Please sign in to comment.