@@ -53,15 +53,6 @@ def test_stm32loader_is_executable():
5353 subprocess .call (["stm32loader" , "--help" ])
5454
5555
56- @pytest .mark .parametrize (
57- "help_argument" , ["-h" , "--help" ],
58- )
59- def test_argument_h_prints_help_info (help_argument , capsys ):
60- main (help_argument , avoid_system_exit = True )
61- captured = capsys .readouterr ()
62- assert "Example:" in captured .out
63-
64-
6556def test_unexisting_serial_port_prints_readable_error (capsys ):
6657 main ("-p" , "COM108" , avoid_system_exit = True )
6758 captured = capsys .readouterr ()
@@ -70,14 +61,6 @@ def test_unexisting_serial_port_prints_readable_error(capsys):
7061 assert "Is the device connected and powered correctly?" in captured .err
7162
7263
73- def test_missing_argument_p_prints_readable_error (capsys ):
74- main (avoid_system_exit = True )
75- captured = capsys .readouterr ()
76- assert "No serial port configured" in captured .err
77- assert "Supply the -p option" in captured .err
78- assert "environment variable STM32LOADER_SERIAL_PORT" in captured .err
79-
80-
8164def test_env_var_stm32loader_serial_port_defines_port (capsys ):
8265 os .environ ['STM32LOADER_SERIAL_PORT' ] = "COM109"
8366 main (avoid_system_exit = True )
0 commit comments