Files
python-by-example/tests/test_example.py
T
2025-10-01 17:05:21 +02:00

9 lines
132 B
Python

import pytest
@pytest.fixture
def sample_data():
return [1, 2, 3]
def test_sum(sample_data):
assert sum(sample_data) == 6