From 2c9c4cba83c36d252a84ef944a4fedba81d41013 Mon Sep 17 00:00:00 2001 From: Jochen Kupperschmidt Date: Fri, 10 Jun 2016 00:07:36 +0200 Subject: [PATCH] Added test for `find_max_daily_commits`. --- tests/test_find_max_daily_commits.py | 75 ++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 tests/test_find_max_daily_commits.py diff --git a/tests/test_find_max_daily_commits.py b/tests/test_find_max_daily_commits.py new file mode 100644 index 000000000..25acb71dc --- /dev/null +++ b/tests/test_find_max_daily_commits.py @@ -0,0 +1,75 @@ +from gitfiti import find_max_daily_commits + + +CONTRIBUTIONS_CALENDAR_SVG = '''\ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Jun + Jul + Aug + Sep + Oct + Nov + Dec + Jan + Feb + Mar + Apr + May + + M + + W + + F + + + +''' + + +def test_find_max_daily_commits(): + assert find_max_daily_commits(CONTRIBUTIONS_CALENDAR_SVG) == 84