Skip to content

Commit

Permalink
Removed footer macros, regen tests all still pass (#3429)
Browse files Browse the repository at this point in the history
[no important files changed]
  • Loading branch information
gelbelle authored Jul 14, 2023
1 parent bdc5fe9 commit feb9cf1
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 31 deletions.
2 changes: 0 additions & 2 deletions exercises/practice/food-chain/.meta/template.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,3 @@ class {{ exercise | camel_case }}Test(unittest.TestCase):
self.assertEqual({{ case["property"]}}({{start_verse}}, {{end_verse}}), {{expected}})

{% endfor %}

{{ macros.footer() }}
4 changes: 0 additions & 4 deletions exercises/practice/food-chain/food_chain_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,3 @@ def test_full_song(self):
"She's dead, of course!",
],
)


if __name__ == "__main__":
unittest.main()
3 changes: 0 additions & 3 deletions exercises/practice/gigasecond/.meta/template.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,3 @@ class {{ exercise | camel_case }}Test(unittest.TestCase):
def test_{{ case["description"] | to_snake }}(self):
self.assertEqual({{ case["property"] }}({{ input }}), {{ expected }})
{% endfor %}


{{ macros.footer() }}
4 changes: 0 additions & 4 deletions exercises/practice/gigasecond/gigasecond_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,3 @@ def test_full_time_with_day_roll_over(self):
self.assertEqual(
add(datetime(2015, 1, 24, 23, 59, 59)), datetime(2046, 10, 3, 1, 46, 39)
)


if __name__ == "__main__":
unittest.main()
2 changes: 0 additions & 2 deletions exercises/practice/grep/.meta/template.j2
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,3 @@ class {{ exercise | camel_case }}Test(unittest.TestCase):
{% endfor %}

{% endfor %}

{{ macros.footer() }}
4 changes: 0 additions & 4 deletions exercises/practice/grep/grep_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,3 @@ def test_multiple_files_several_matches_inverted_and_match_entire_lines_flags(
"paradise-lost.txt:Of Oreb, or of Sinai, didst inspire\n"
"paradise-lost.txt:That Shepherd, who first taught the chosen Seed\n",
)


if __name__ == "__main__":
unittest.main()
2 changes: 0 additions & 2 deletions exercises/practice/house/.meta/template.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,3 @@ class {{ exercise | camel_case }}Test(unittest.TestCase):
{{ case["expected"] }}
)
{% endfor %}

{{ macros.footer() }}
4 changes: 0 additions & 4 deletions exercises/practice/house/house_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,3 @@ def test_full_rhyme(self):
"This is the horse and the hound and the horn that belonged to the farmer sowing his corn that kept the rooster that crowed in the morn that woke the priest all shaven and shorn that married the man all tattered and torn that kissed the maiden all forlorn that milked the cow with the crumpled horn that tossed the dog that worried the cat that killed the rat that ate the malt that lay in the house that Jack built.",
],
)


if __name__ == "__main__":
unittest.main()
2 changes: 0 additions & 2 deletions exercises/practice/isbn-verifier/.meta/template.j2
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,3 @@ class {{ exercise | camel_case }}Test(unittest.TestCase):
def test_{{ case["description"] | to_snake }}(self):
self.assertIs({{ case["property"] | to_snake }}("{{ case["input"]["isbn"] }}"), {{ case["expected"] }})
{% endfor %}

{{ macros.footer() }}
4 changes: 0 additions & 4 deletions exercises/practice/isbn-verifier/isbn_verifier_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,3 @@ def test_invalid_characters_are_not_ignored_before_checking_length(self):

def test_input_is_too_long_but_contains_a_valid_isbn(self):
self.assertIs(is_valid("98245726788"), False)


if __name__ == "__main__":
unittest.main()

0 comments on commit feb9cf1

Please sign in to comment.