1 2 3 4 5 6 7 8 9 10 11 12
import pytest @pytest.fixture def test_var(_var_name): try: _var_name except NameError: return False else: return True