Parameterised Test
We borrow the same concept of Mark:
import src.main as app
import pytest
@pytest.mark.parametrize("numberA, numberB", [(5, 1), (2, 3), (4, 5)])
def test_parameterize(numberA, numberB):
actual = app.addition(numberA, numberB)
assert actual == numberA + numberB
As a result, this will run 3
tests.