Skip to content

Commit

Permalink
fixed the test
Browse files Browse the repository at this point in the history
  • Loading branch information
davyd_davyd committed Nov 23, 2024
1 parent 136c105 commit 859f123
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class TestExceptionInfo(TestCase):
def test_exception_info_with_standard_exception(self):
# Arrange
args = (ast.Constant(value='error message'),)
kwargs = {'code': ast.Constant(value=1)}
kwargs = {}

# Act
exception_info = ExceptionInfo(exception_class=ValueError, args=args, kwargs=kwargs)
Expand All @@ -23,7 +23,7 @@ def test_exception_info_with_standard_exception(self):
# Assert
self.assertIs(exception_info.exception_class, ValueError)
self.assertEqual(exception_info.args, ('error message',))
self.assertEqual(exception_info.kwargs, {'code': 1})
self.assertEqual(exception_info.kwargs, {})
self.assertIsInstance(exception_instance, ValueError)

def test_exception_info_with_custom_exception(self):
Expand Down

0 comments on commit 859f123

Please sign in to comment.