Skip to content

Commit dff1864

Browse files
author
Florian Kromer
committed
change: string concatenations
1 parent 0105c9a commit dff1864

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_setter_injection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ def test_display_current_time_at_current_time(self):
4242
class_under_test = TimeDisplay()
4343
class_under_test.set_time_provider(production_code_time_provider)
4444
current_time = datetime.datetime.now()
45-
expected_time = "<span class=\"tinyBoldText\">" + str(current_time.hour) + ":" + str(current_time.minute) + "</span>"
45+
expected_time = "<span class=\"tinyBoldText\">{}:{}</span>".format(current_time.hour, current_time.minute)
4646
self.assertEqual(class_under_test.get_current_time_as_html_fragment(), expected_time)

0 commit comments

Comments
 (0)