Removed footer macros, regen tests, all still pass (#3431)
Removed `unittest` call from test file footers. [no important files changed]
This commit is contained in:
@@ -18,6 +18,3 @@ class {{ exercise | camel_case }}Test(unittest.TestCase):
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
||||
|
||||
{{ macros.footer() }}
|
||||
|
||||
@@ -130,7 +130,3 @@ class BottleSongTest(unittest.TestCase):
|
||||
"There'll be no green bottles hanging on the wall.",
|
||||
]
|
||||
self.assertEqual(recite(start=10, take=10), expected)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
@@ -29,4 +29,3 @@ class {{ exercise | camel_case }}Test(unittest.TestCase):
|
||||
|
||||
{% endfor %}
|
||||
{%- endfor %}
|
||||
{{ macros.footer() }}
|
||||
|
||||
@@ -177,7 +177,3 @@ class ClockTest(unittest.TestCase):
|
||||
|
||||
def test_full_clock_and_zeroed_clock(self):
|
||||
self.assertEqual(Clock(24, 0), Clock(0, 0))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
@@ -9,5 +9,3 @@ class {{ exercise | camel_case }}Test(unittest.TestCase):
|
||||
self.assertEqual(cipher_text(value), expected)
|
||||
|
||||
{% endfor %}
|
||||
|
||||
{{ macros.footer() }}
|
||||
@@ -51,7 +51,3 @@ class CryptoSquareTest(unittest.TestCase):
|
||||
value = "If man was meant to stay on the ground, god would have given us roots."
|
||||
expected = "imtgdvs fearwer mayoogo anouuio ntnnlvt wttddes aohghn sseoau "
|
||||
self.assertEqual(cipher_text(value), expected)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
@@ -44,5 +44,4 @@ class {{ class_name }}Test(unittest.TestCase):
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
||||
{{ macros.footer() }}
|
||||
|
||||
@@ -212,7 +212,3 @@ class CustomSetTest(unittest.TestCase):
|
||||
set2 = CustomSet([2, 3])
|
||||
expected = CustomSet([3, 2, 1])
|
||||
self.assertEqual(set1 + set2, expected)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
@@ -6,5 +6,3 @@ class {{ exercise | camel_case }}Test(unittest.TestCase):
|
||||
def test_{{ case["description"] | to_snake }}(self):
|
||||
self.assertEqual({{ case["property"] }}({{ case["input"]["x"] }}, {{ case["input"]["y"] }}), {{ case["expected"] }})
|
||||
{% endfor %}
|
||||
|
||||
{{ macros.footer() }}
|
||||
|
||||
@@ -46,7 +46,3 @@ class DartsTest(unittest.TestCase):
|
||||
|
||||
def test_asymmetric_position_between_the_inner_and_middle_circles(self):
|
||||
self.assertEqual(score(0.5, -4), 5)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user