Skip to content

Commit 8dc1405

Browse files
author
Juliya Smith
committed
Format
1 parent adce203 commit 8dc1405

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

c42seceventcli/aed/args.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def _verify_destination_port(self):
127127
try:
128128
self.destination_port = int(self.destination_port)
129129
except ValueError:
130-
msg = ("Destination port '{0}' not a base 10 integer.".format(self.destination_port))
130+
msg = "Destination port '{0}' not a base 10 integer.".format(self.destination_port)
131131
self._raise_value_error(msg)
132132

133133
def _verify_stdout_destination(self):

tests/aed/test_main.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,15 +234,19 @@ def test_main_when_given_destination_protocol_via_cli_passes_port_to_get_logger(
234234
assert actual == expected
235235

236236

237-
def test_main_when_get_logger_raises_io_error_without_errno_61_print_error_about_file_path(patches, capsys):
237+
def test_main_when_get_logger_raises_io_error_without_errno_61_print_error_about_file_path(
238+
patches, capsys
239+
):
238240
patches.get_logger.side_effect = IOError
239241
with pytest.raises(SystemExit):
240242
main.main()
241243

242244
assert "file path" in capsys.readouterr().out.lower()
243245

244246

245-
def test_main_when_get_logger_raises_io_error_with_errno_61_prints_error_about_hostname(patches, capsys):
247+
def test_main_when_get_logger_raises_io_error_with_errno_61_prints_error_about_hostname(
248+
patches, capsys
249+
):
246250
err = IOError()
247251
err.errno = 61
248252
patches.get_logger.side_effect = err

0 commit comments

Comments
 (0)