PyTest - Fixtures
You have a fixture defined in
conftest.py as follows:
import pytest
@pytest.fixture
def data():
return [1, 2, 3]
In your test file, you wrote:
def test_sum(data):
assert sum(data) == 10
What is the problem and how to fix it?