Skip to content

Commit

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


def greet(name: str, owner: str) -> str:
"""
Function that gives a personalized greeting.
This function takes two parameters: name and owner.
Return a personalized greeting.
This function takes two parameters: name and owner.
:param name: str
:param owner: str
:return:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""
Test for -> Personalized greeting
Test for -> Personalized greeting.
Created by Egor Kostan.
GitHub: https://github.com/ikostan
"""
Expand All @@ -23,18 +24,17 @@
@allure.tag('FUNDAMENTALS',
'CONDITIONAL STATEMENTS',
'CONTROL FLOW')
@allure.link(url='https://www.codewars.com/kata/5772da22b89313a4d50012f7',
name='Source/Kata')
@allure.link(
url='https://www.codewars.com/kata/5772da22b89313a4d50012f7',
name='Source/Kata')
# pylint: enable=R0801
class GreetTestCase(unittest.TestCase):
"""
Testing greet function
"""
"""Testing greet function."""

def test_greet(self):
"""
Use conditionals to to verify that greet
function returns the proper message.
Conditionals tests to verify that greet function returns the proper message.
:return:
"""
# pylint: disable=R0801
Expand All @@ -43,8 +43,9 @@ def test_greet(self):
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 19e631f

Please sign in to comment.