PyTest - Fixtures
Consider this fixture in
and the test:
What issue might arise when running multiple tests using this fixture?
conftest.py:@pytest.fixture
def items():
return [1, 2, 3]and the test:
def test_append(items):
items.append(4)
assert items == [1, 2, 3, 4]What issue might arise when running multiple tests using this fixture?
