Skip to content

Commit 3b8de80

Browse files
author
Florian Kromer
committed
change: string concatenations
1 parent 30bf0a8 commit 3b8de80

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_parameter_injection.py

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

0 commit comments

Comments
 (0)