25 lines
556 B
Python
25 lines
556 B
Python
import os
|
|
|
|
from click.testing import CliRunner
|
|
from tests_examples_app.public import _PATH_EXAMPLES
|
|
|
|
from lightning_app.cli.lightning_cli import run_app
|
|
|
|
|
|
def test_layout_example():
|
|
|
|
runner = CliRunner()
|
|
result = runner.invoke(
|
|
run_app,
|
|
[
|
|
os.path.join(_PATH_EXAMPLES, "app_layout", "app.py"),
|
|
"--blocking",
|
|
"False",
|
|
"--open-ui",
|
|
"False",
|
|
],
|
|
catch_exceptions=False,
|
|
)
|
|
assert "Layout End" in str(result.stdout_bytes)
|
|
assert result.exit_code == 0
|