Initial commit
This commit is contained in:
0
tests/__init__.py
Normal file
0
tests/__init__.py
Normal file
15
tests/example_test.py
Normal file
15
tests/example_test.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import pytest
|
||||
|
||||
from uv_app.example_util import addition
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
("a", "b", "expected"),
|
||||
[
|
||||
(2, 3, 5),
|
||||
(1.5, 2.5, 4.0),
|
||||
(-1, 1, 0),
|
||||
],
|
||||
)
|
||||
def test_addition_returns_sum(a: float, b: float, expected: float) -> None:
|
||||
assert addition(a, b) == expected
|
||||
Reference in New Issue
Block a user