Skip to content

Commit

Permalink
Added tests for multiply function and fixed linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
NimahMasuud committed Jan 11, 2025
1 parent cc08f31 commit 11eb838
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions solutions/tests/test_multiply.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ def test_multiply_float_numbers(self):
def test_multiply_invalid_first_argument(self):
"""Test error when the first argument is not a number."""
with self.assertRaises(TypeError):
multiply("a", 5)
multiply("a", 5)

def test_multiply_invalid_second_argument(self):
"""Test error when the second argument is not a number."""
with self.assertRaises(TypeError):
multiply(3, None)


if __name__ == "__main__":
if __name__ == "__main__":
unittest.main()

0 comments on commit 11eb838

Please sign in to comment.