Skip to content

Commit df62464

Browse files
Tests and linting passing (locally!)
1 parent 573c5a5 commit df62464

File tree

18 files changed

+32
-983
lines changed

18 files changed

+32
-983
lines changed

tools/python/mbed_tools/cli/list_connected_devices.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,14 @@
1616

1717

1818
@click.command()
19+
# Note: We need to give --format an alias so it doesn't shadow a builtin
1920
@click.option(
20-
"--format", type=click.Choice(["table", "json"]), default="table", show_default=True, help="Set output format."
21+
"--format",
22+
"format_type",
23+
type=click.Choice(["table", "json"]),
24+
default="table",
25+
show_default=True,
26+
help="Set output format.",
2127
)
2228
@click.option(
2329
"--show-all",

tools/python_tests/mbed_tools/cli/test_devices_command_integration.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,3 @@ def callback():
3131

3232
self.assertEqual(1, result.exit_code)
3333
logger_error.assert_called_once()
34-
35-
36-
class TestVersionCommand(TestCase):
37-
def test_version_command(self):
38-
runner = CliRunner()
39-
result = runner.invoke(main.cli, ["--version"])
40-
self.assertTrue(result.output)
41-
self.assertEqual(0, result.exit_code)

tools/python_tests/mbed_tools/cli/test_project_management.py

Lines changed: 0 additions & 113 deletions
This file was deleted.

tools/python_tests/mbed_tools/devices/_internal/darwin/test_ioreg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def test_returns_data_from_ioreg_call(self, check_output):
1818
</plist>"""
1919

2020
self.assertEqual(get_data("some device"), ["foo"])
21-
check_output.assert_called_once_with(["ioreg", "-a", "-r", "-n", "some device", "-l"])
21+
check_output.assert_called_once_with(["/usr/sbin/ioreg", "-a", "-r", "-n", "some device", "-l"])
2222

2323
def test_handles_corrupt_data_gracefully(self, check_output):
2424
check_output.return_value = b"""<plist version="1.0">

tools/python_tests/mbed_tools/project/_internal/test_git_utils.py

Lines changed: 0 additions & 151 deletions
This file was deleted.

0 commit comments

Comments
 (0)