PyTest - Fixtures
Identify the error in the following pytest test code using a fixture:
import pytest
@pytest.fixture
def data():
return 42
def test_data(data):
result = data()
assert result == 42