<reponame>diy2learn/pytest-jenkins<filename>tests/test_addition.py
from src.calculator import add
import pytest


def test_add():
    result = add(3, 5)
    assert result == 8


def test_add_string():
    with pytest.raises(TypeError):
        add("string", 4)
from src.calculator import add
import pytest


def test_add():
    result = add(3, 5)
    assert result == 8


def test_add_string():
    with pytest.raises(TypeError):
        add("string", 4)