import pytest @pytest.fixture(autouse=True) def data(): assert False class TestData(): def test_foo(self): assert 'prasha' in "prashanth" def test_foo2(self): assert 'prasha' in "prashanth"