Skip to content

Commit

Permalink
==kyu_7.disemvowel_trolls
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.disemvowel_trolls.test_disemvowel_trolls:[15:20]
==kyu_7.find_the_longest_gap.test_gap:[12:17]
@allure.epic('7 kyu')
@allure.parent_suite('Beginner')
@allure.suite("Advanced Language Features")
@allure.sub_suite("Unit Tests")
@allure.feature("String") (duplicate-code)
  • Loading branch information
ikostan committed Sep 22, 2024
1 parent 8ca8448 commit e00ce14
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kyu_7/disemvowel_trolls/test_disemvowel_trolls.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from kyu_7.disemvowel_trolls.disemvowel_trolls import disemvowel


# pylint: disable-msg=R0801
@allure.epic('7 kyu')
@allure.parent_suite('Beginner')
@allure.suite("Advanced Language Features")
Expand All @@ -27,6 +28,7 @@
@allure.link(
url='https://www.codewars.com/kata/52fba66badcd10859f00097e/train/python',
name='Source/Kata')
# pylint: enable-msg=R0801
class DisemvowelTestCase(unittest.TestCase):
"""
Testing disemvowel function
Expand All @@ -37,6 +39,7 @@ def test_disemvowel(self):
should become "Ths wbst s fr lsrs LL!"
:return:
"""
global input_data

Check notice on line 42 in kyu_7/disemvowel_trolls/test_disemvowel_trolls.py

View check run for this annotation

codefactor.io / CodeFactor

kyu_7/disemvowel_trolls/test_disemvowel_trolls.py#L42

Global variable 'input_data' undefined at the module level (global-variable-undefined)

Check warning on line 42 in kyu_7/disemvowel_trolls/test_disemvowel_trolls.py

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

kyu_7/disemvowel_trolls/test_disemvowel_trolls.py#L42

Global variable 'input_data' undefined at the module level
allure.dynamic.title("a and b are equal")
allure.dynamic.severity(allure.severity_level.NORMAL)
allure.dynamic.description_html(
Expand All @@ -61,6 +64,7 @@ def test_disemvowel(self):

for data in test_data:
input_data, expected = data

with allure.step("Enter test data ans assert the result"):
print_log(input=input_data,
expected=expected)
Expand Down

0 comments on commit e00ce14

Please sign in to comment.