Skip to content

Commit 4cca032

Browse files
author
Florian Kromer
committed
change: string concatenations
1 parent 27e4539 commit 4cca032

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_constructor_injection.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,8 @@ def test_display_current_time_at_current_time(self):
4040
production_code_time_provider = ProductionCodeTimeProvider()
4141
class_under_test = TimeDisplay(production_code_time_provider)
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(), expected_time)
45+
46+
if __name__ == "__main__":
47+
unittest.main()

0 commit comments

Comments
 (0)