Skip to content

Commit

Permalink
Update test_sum_triangular_numbers.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ikostan committed Oct 24, 2024
1 parent 8d94fc2 commit 8e3d9b1
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ def test_sum_triangular_numbers_negative_numbers(self):
self.assertEqual(sum_triangular_numbers(n), expected)

with allure.step("Enter negative number and verify the output"):
n: int = -971
expected: int = 0
n = -971

Check notice on line 59 in kyu_7/sum_of_triangular_numbers/test_sum_triangular_numbers.py

View check run for this annotation

codefactor.io / CodeFactor

kyu_7/sum_of_triangular_numbers/test_sum_triangular_numbers.py#L59

Variable name "n" doesn't conform to snake_case naming style (invalid-name)
expected = 0
print_log(n=n, expected=expected)
self.assertEqual(sum_triangular_numbers(n), expected)

Expand Down Expand Up @@ -109,8 +109,8 @@ def test_sum_triangular_numbers_positive_numbers(self):

with allure.step("Enter a positive number as an input "
"and verify the output"):
n: int = 34
expected: int = 7140
n = 34

Check notice on line 112 in kyu_7/sum_of_triangular_numbers/test_sum_triangular_numbers.py

View check run for this annotation

codefactor.io / CodeFactor

kyu_7/sum_of_triangular_numbers/test_sum_triangular_numbers.py#L112

Variable name "n" doesn't conform to snake_case naming style (invalid-name)
expected = 7140
print_log(n=n, expected=expected)
self.assertEqual(sum_triangular_numbers(n), expected)

Expand Down

0 comments on commit 8e3d9b1

Please sign in to comment.