We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27e4539 commit 4cca032Copy full SHA for 4cca032
tests/test_constructor_injection.py
@@ -40,5 +40,8 @@ def test_display_current_time_at_current_time(self):
40
production_code_time_provider = ProductionCodeTimeProvider()
41
class_under_test = TimeDisplay(production_code_time_provider)
42
current_time = datetime.datetime.now()
43
- expected_time = "<span class=\"tinyBoldText\">" + str(current_time.hour) + ":" + str(current_time.minute) + "</span>"
+ expected_time = "<span class=\"tinyBoldText\">{}:{}</span>".format(current_time.hour, current_time.minute)
44
self.assertEqual(class_under_test.get_current_time_as_html_fragment(), expected_time)
45
+
46
+if __name__ == "__main__":
47
+ unittest.main()
0 commit comments