def pytest_generate_tests(metafunc):
    """Apply the --mode option to the app fixture"""
    if metafunc.fixturenames in 'app':
        metafunc.parametrize('app', {
            'multiple': ('MULTIPLE',),
            'single': ('SINGLE',),
            'subdomain': ('SUBDOMAIN',),
            'all': ('MULTIPLE', 'SINGLE', 'SUBDOMAIN'),
        }[metafunc.config.getoption('mode')], indirect=True, scope="module")
dataset/ETHPy150Open pytent/pytentd/tentd/tests/conftest.py/pytest_generate_tests/swapped operands of `in`