1
0
Fork 0
PythonProject/tests/test_example.py

18 lines
304 B
Python
Raw Normal View History

2022-08-31 00:54:17 +01:00
"""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