Skip to content

Commit

Permalink
beginner_series_sum_of_numbers
Browse files Browse the repository at this point in the history
kyu_7/easy_line/__init__.py:1:0: R0801: Similar lines in 2 files
==kyu_7.beginner_series_sum_of_numbers.test_sum_of_numbers:[57:65]
==kyu_7.sum_of_powers_of_2.test_sum_of_powers_of_2:[39:47]
        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">'
            '<h3>Test Description:</h3>'
            "<p></p>")
 (duplicate-code)
  • Loading branch information
ikostan committed Sep 24, 2024
1 parent 8bd978c commit 6753e44
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions kyu_7/beginner_series_sum_of_numbers/test_sum_of_numbers.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def test_get_sum_equal_numbers(self):
a and b are equal
:return:
"""
# pylint: disable-msg=R0801
allure.dynamic.title("a and b are equal")
allure.dynamic.severity(allure.severity_level.NORMAL)
allure.dynamic.description_html(
Expand All @@ -43,7 +44,7 @@ def test_get_sum_equal_numbers(self):
'/badges/large">'
'<h3>Test Description:</h3>'
"<p></p>")

# pylint: enable-msg=R0801
with allure.step("Assert the result"):
a = b = expected = 1
print_log(a=a, b=b, expected=expected)
Expand All @@ -54,6 +55,7 @@ def test_get_sum_positive_numbers(self):
a an b are positive numbers
:return:
"""
# pylint: disable-msg=R0801
allure.dynamic.title("a an b are positive numbers")
allure.dynamic.severity(allure.severity_level.NORMAL)
allure.dynamic.description_html(
Expand All @@ -62,7 +64,7 @@ def test_get_sum_positive_numbers(self):
'/badges/large">'
'<h3>Test Description:</h3>'
"<p></p>")

# pylint: enable-msg=R0801
with allure.step("Assert the result"):
a = 0
b = expected = 1
Expand All @@ -87,6 +89,7 @@ def test_get_sum_negative_numbers(self):
a or b is negative
:return:
"""
# pylint: disable-msg=R0801
allure.dynamic.title("a or b is negative")
allure.dynamic.severity(allure.severity_level.NORMAL)
allure.dynamic.description_html(
Expand All @@ -95,7 +98,7 @@ def test_get_sum_negative_numbers(self):
'/badges/large">'
'<h3>Test Description:</h3>'
"<p></p>")

# pylint: enable-msg=R0801
with allure.step("Assert the result"):
a = 0
b = -1
Expand Down

0 comments on commit 6753e44

Please sign in to comment.