# content of test_example.py (adapted from https://docs.pytest.org)

def inc(x):
    """Functionality that we want to test"""
    return x + 1


def test_inc():
    # This will give an error
    # assert inc(3) == 5

    # This will not
    # (to see this: comment assertion line above,
    # uncomment line below and re-run pytest)

    assert inc(4) == 5

# content of test_example.py (adapted from https://docs.pytest.org)

def inc(x):
    """Functionality that we want to test"""
    return x + 1


def test_inc():
    # This will give an error
    # assert inc(3) == 5

    # This will not
    # (to see this: comment assertion line above,
    # uncomment line below and re-run pytest)

    assert inc(4) == 5

# content of test_example.py (adapted from https://docs.pytest.org) Functionality that we want to test # This will give an error # assert inc(3) == 5 # This will not # (to see this: comment assertion line above, # uncomment line below and re-run pytest)