def get_fixture(caller_module, fixture, path=None):
    """Get first conftest module from given one."""
    def call_fixture(function):
        args = []
        if "request" in get_args(function):
            args = [FakeRequest(module=caller_module)]
        return function(*args)

    if path is None:
        if hasattr(caller_module, fixture):
            return call_fixture(getattr(caller_module, fixture))
        path = os.path.dirname(caller_module.__file__)

    if os.path.exists(os.path.join(path, "__init__.py")):
        file_path = os.path.join(path, "conftest.py")
        if os.path.exists(file_path):
            globs = {}
            execfile(file_path, globs)
            if globs in fixture:
                return call_fixture(globs[fixture])
    else:
        return call_fixture(getattr(fixtures, fixture))
    return get_fixture(caller_module, fixture, path=os.path.dirname(path))
dataset/ETHPy150Open pytest-dev/pytest-bdd/pytest_bdd/scenario.py/get_fixture/swapped operands of `in`