Skip to content

Commit

Permalink
# Grasshopper - Messi goals function
Browse files Browse the repository at this point in the history
  • Loading branch information
ikostan committed Dec 24, 2024
1 parent 477fc50 commit a0dd265
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
1 change: 1 addition & 0 deletions kyu_8/grasshopper_messi_goals_function/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Grasshopper - Messi goals function."""
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
"""
Solution for -> Messi goals function
Solution for -> Messi goals function.
Created by Egor Kostan.
GitHub: https://github.com/ikostan
"""


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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""
Test for -> Messi goals function
Test for -> Messi goals function.
Created by Egor Kostan.
GitHub: https://github.com/ikostan
"""
Expand All @@ -26,23 +27,25 @@
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
allure.dynamic.title("goals function verification")
allure.dynamic.severity(allure.severity_level.NORMAL)
allure.dynamic.description_html(
'<h3>Codewars badge:</h3>'
'<img src="https://www.codewars.com/users/myFirstCode'
'/badges/large">'
'<img src="'
'https://www.codewars.com/users/myFirstCode/badges/large'
'">'
'<h3>Test Description:</h3>'
"<p></p>")
# pylint: enable=R0801
Expand Down

0 comments on commit a0dd265

Please sign in to comment.