1
0
Fork 0
PythonProject/tests/test_example.py

18 lines
304 B
Python

"""Tests for example.py."""
from foobar.example import add_numbers
def test_add() -> None:
"""Assert that two integers add together correctly."""
# Arrange
first = 40
second = 2
expected = 42
# Act
ret = add_numbers(first, second)
# Assert
assert ret == expected