diff --git a/kyu_8/grasshopper_messi_goals_function/__init__.py b/kyu_8/grasshopper_messi_goals_function/__init__.py index e69de29bb2d..b041eb78383 100644 --- a/kyu_8/grasshopper_messi_goals_function/__init__.py +++ b/kyu_8/grasshopper_messi_goals_function/__init__.py @@ -0,0 +1 @@ +"""Grasshopper - Messi goals function.""" diff --git a/kyu_8/grasshopper_messi_goals_function/messi_goals_function.py b/kyu_8/grasshopper_messi_goals_function/messi_goals_function.py index 439037ca19d..8891f8333af 100644 --- a/kyu_8/grasshopper_messi_goals_function/messi_goals_function.py +++ b/kyu_8/grasshopper_messi_goals_function/messi_goals_function.py @@ -1,5 +1,6 @@ """ -Solution for -> Messi goals function +Solution for -> Messi goals function. + Created by Egor Kostan. GitHub: https://github.com/ikostan """ @@ -7,6 +8,8 @@ def goals(la_liga: int, copa_delrey: int, champions_league: int) -> int: """ + Goals function. + The function returns Messi's total number of goals in all three leagues: - LaLiga diff --git a/kyu_8/grasshopper_messi_goals_function/test_messi_goals_function.py b/kyu_8/grasshopper_messi_goals_function/test_messi_goals_function.py index a69045f494d..faad955dd3d 100644 --- a/kyu_8/grasshopper_messi_goals_function/test_messi_goals_function.py +++ b/kyu_8/grasshopper_messi_goals_function/test_messi_goals_function.py @@ -1,5 +1,6 @@ """ -Test for -> Messi goals function +Test for -> Messi goals function. + Created by Egor Kostan. GitHub: https://github.com/ikostan """ @@ -26,14 +27,15 @@ name='Source/Kata') # pylint: enable=R0801 class GoalsTestCase(unittest.TestCase): - """ - Testing goals function - """ + """Testing goals function.""" def test_goals(self): """ - Verify that the function returns Messi's - total number of goals in all three leagues. + Testing 'goals' function with various test data. + + Verify that the function returns Messi's total + number of goals in all three leagues. + :return: """ # pylint: disable=R0801 @@ -41,8 +43,9 @@ def test_goals(self): allure.dynamic.severity(allure.severity_level.NORMAL) allure.dynamic.description_html( '