import pytest @pytest.fixture(scope="session") def data(): assert False class TestData(): @pytest.mark.usefixtures('data') def test_foo(self): assert 'prasha' in "prashanth"