fastapi_django_main_live / routers /ai /tests /test_math_operations.py
kenken999's picture
teste
b1ce64c
raw
history blame
339 Bytes
from unittest import TestCase
from src.math_operations import add, subtract
class TestMathOperations(TestCase):
"""Test math operations"""
def test_add(self):
"""Test addition"""
self.assertEqual(add(2, 3), 5)
def test_subtract(self):
"""Test subtraction"""
self.assertEqual(subtract(5, 3), 2)