Files
python-by-example/tests/test_example.py

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