Skip to content

Commit

Permalink
Update test_sum_of_numbers.py
Browse files Browse the repository at this point in the history
kyu_7/beginner_series_sum_of_numbers/test_sum_of_numbers.py:76: error: Name "b" already defined on line 70  [no-redef]
kyu_7/beginner_series_sum_of_numbers/test_sum_of_numbers.py:81: error: Name "a" already defined on line 69  [no-redef]
kyu_7/beginner_series_sum_of_numbers/test_sum_of_numbers.py:82: error: Name "b" already defined on line 70  [no-redef]
kyu_7/beginner_series_sum_of_numbers/test_sum_of_numbers.py:109: error: Name "a" already defined on line 103  [no-redef]
kyu_7/beginner_series_sum_of_numbers/test_sum_of_numbers.py:110: error: Name "b" already defined on line 104  [no-redef]
kyu_7/beginner_series_sum_of_numbers/test_sum_of_numbers.py:111: error: Name "expected" already defined on line 104  [no-redef]
kyu_7/beginner_series_sum_of_numbers/test_sum_of_numbers.py:116: error: Name "a" already defined on line 103  [no-redef]
  • Loading branch information
ikostan committed Oct 24, 2024
1 parent 8326a91 commit 8d94fc2
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 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 @@ -9,7 +9,8 @@
import unittest
import allure
from utils.log_func import print_log
from kyu_7.beginner_series_sum_of_numbers.sum_of_numbers import get_sum
from kyu_7.beginner_series_sum_of_numbers.sum_of_numbers \
import get_sum


# pylint: disable-msg=R0801
Expand Down Expand Up @@ -73,13 +74,13 @@ def test_get_sum_positive_numbers(self):

with allure.step("Assert the result"):
a = expected = 1
b: int = 0
b = 0

Check notice on line 77 in kyu_7/beginner_series_sum_of_numbers/test_sum_of_numbers.py

View check run for this annotation

codefactor.io / CodeFactor

kyu_7/beginner_series_sum_of_numbers/test_sum_of_numbers.py#L77

Variable name "b" doesn't conform to snake_case naming style (invalid-name)
print_log(a=a, b=b, expected=expected)
self.assertEqual(get_sum(a, b), expected)

with allure.step("Assert the result"):
a: int = 1
b: int = 2
a = 1

Check notice on line 82 in kyu_7/beginner_series_sum_of_numbers/test_sum_of_numbers.py

View check run for this annotation

codefactor.io / CodeFactor

kyu_7/beginner_series_sum_of_numbers/test_sum_of_numbers.py#L82

Variable name "a" doesn't conform to snake_case naming style (invalid-name)
b = 2

Check notice on line 83 in kyu_7/beginner_series_sum_of_numbers/test_sum_of_numbers.py

View check run for this annotation

codefactor.io / CodeFactor

kyu_7/beginner_series_sum_of_numbers/test_sum_of_numbers.py#L83

Variable name "b" doesn't conform to snake_case naming style (invalid-name)
expected = a + b
print_log(a=a, b=b, expected=expected)
self.assertEqual(get_sum(a, b), expected)
Expand All @@ -106,14 +107,14 @@ def test_get_sum_negative_numbers(self):
self.assertEqual(get_sum(a, b), expected)

with allure.step("Assert the result"):
a: int = -1
b: int = 0
a = -1

Check notice on line 110 in kyu_7/beginner_series_sum_of_numbers/test_sum_of_numbers.py

View check run for this annotation

codefactor.io / CodeFactor

kyu_7/beginner_series_sum_of_numbers/test_sum_of_numbers.py#L110

Variable name "a" doesn't conform to snake_case naming style (invalid-name)
b = 0

Check notice on line 111 in kyu_7/beginner_series_sum_of_numbers/test_sum_of_numbers.py

View check run for this annotation

codefactor.io / CodeFactor

kyu_7/beginner_series_sum_of_numbers/test_sum_of_numbers.py#L111

Variable name "b" doesn't conform to snake_case naming style (invalid-name)
expected: int = a + b
print_log(a=a, b=b, expected=expected)
self.assertEqual(get_sum(a, b), expected)

with allure.step("Assert the result"):
a: int = -1
a = -1

Check notice on line 117 in kyu_7/beginner_series_sum_of_numbers/test_sum_of_numbers.py

View check run for this annotation

codefactor.io / CodeFactor

kyu_7/beginner_series_sum_of_numbers/test_sum_of_numbers.py#L117

Variable name "a" doesn't conform to snake_case naming style (invalid-name)
b = expected = 2
print_log(a=a, b=b, expected=expected)
self.assertEqual(get_sum(a, b), expected)

0 comments on commit 8d94fc2

Please sign in to comment.