Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion integrations/lingbot/lingbot/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -1106,6 +1106,5 @@ def _is_torchrun_env() -> bool:
"inference_config_from_runner_config",
"inference_input_from_replay_inputs",
"inference_input_from_runner_config",
"replay_inputs_from_inference_input",
"replay_inputs_from_mapping",
]
24 changes: 24 additions & 0 deletions integrations/lingbot/tests/test_runtime_public_api.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

from __future__ import annotations

import lingbot.runtime as runtime

import pytest

pytestmark = pytest.mark.ci_cpu


def test_runtime_all_exports_are_defined() -> None:
"""Every name in ``lingbot.runtime.__all__`` must exist on the module.

``from lingbot.runtime import *`` raises ``AttributeError`` when
``__all__`` lists a name the module does not define, so the public API
list must stay in sync with the module's definitions.
"""
missing = [name for name in runtime.__all__ if not hasattr(runtime, name)]
assert not missing, (
"lingbot.runtime.__all__ references names that are not defined: "
f"{', '.join(missing)}."
)