Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
m4tveevm committed Oct 7, 2024
1 parent f7f30a9 commit 97d68e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Shunting Yard/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

class MyTestCase(unittest.TestCase):
def setup(self):
self.sol = Solution()
self.__sol = Solution()

Check notice on line 8 in Shunting Yard/tests.py

View workflow job for this annotation

GitHub Actions / Qodana Community for Python

An instance attribute is defined outside `__init__`

Instance attribute __sol defined outside __init__

def test_algo(self):
self.setup()
Expand Down Expand Up @@ -44,4 +44,4 @@ def test_algo(self):
]

for expr, expected in test_cases:
self.assertEqual(self.sol.infix_to_postfix(expr), expected)
self.assertEqual(self.__sol.infix_to_postfix(expr), expected)

0 comments on commit 97d68e3

Please sign in to comment.