def test_txtfile_with_usefixtures_in_ini(self, testdir):
    testdir.makeini('\n            [pytest]\n            usefixtures = myfixture\n        ')
    testdir.makeconftest('\n            import pytest\n            @pytest.fixture\n            def myfixture(monkeypatch):\n                monkeypatch.setenv("HELLO", "WORLD")\n        ')
    p = testdir.maketxtfile('\n            >>> import os\n            >>> os.environ["HELLO"]\n            \'WORLD\'\n        ')
    reprec = testdir.inline_run(p)
    reprec.assertoutcome(passed=1)
def test_txtfile_with_usefixtures_in_ini(self, testdir):
    testdir.makeini('\n            [pytest]\n            usefixtures = myfixture\n        ')
    testdir.makeconftest('\n            import pytest\n            @pytest.fixture\n            def myfixture(monkeypatch):\n                monkeypatch.setenv("HELLO", "WORLD")\n        ')
    p = testdir.maketxtfile('\n            >>> import os\n            >>> os.environ["HELLO"]\n            \'WORLD\'\n        ')
    reprec = testdir.inline_run(p)
    reprec.assertoutcome(passed=1)