From 30937522edffb0a91cf8216f25d2512c3f4a9825 Mon Sep 17 00:00:00 2001 From: thomas Date: Fri, 9 Dec 2022 23:04:59 +0000 Subject: [PATCH 1/2] update --- src/lightning_app/testing/config.py | 2 +- tests/tests_examples_app/public/test_boring_app.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lightning_app/testing/config.py b/src/lightning_app/testing/config.py index e18ec0ebe75bd..2376e7032cd22 100644 --- a/src/lightning_app/testing/config.py +++ b/src/lightning_app/testing/config.py @@ -6,7 +6,7 @@ class _Config: id = os.getenv("LIGHTNING_USER_ID") key = os.getenv("LIGHTNING_API_KEY") - url = os.getenv("LIGHTNING_CLOUD_URL", "") + url = os.getenv("LIGHTNING_CLOUD_URL", "https://lightning.ai") api_key = os.getenv("LIGHTNING_API_KEY") username = os.getenv("LIGHTNING_USERNAME") video_location = os.getenv("VIDEO_LOCATION", "./artifacts/videos") diff --git a/tests/tests_examples_app/public/test_boring_app.py b/tests/tests_examples_app/public/test_boring_app.py index a97bccb93229b..a5177d0a18062 100644 --- a/tests/tests_examples_app/public/test_boring_app.py +++ b/tests/tests_examples_app/public/test_boring_app.py @@ -30,5 +30,5 @@ def check_hello_there(*_, **__): assert result.exit_code == 0 assert result.exception is None - assert any("--filepath=/content/.storage/boring_file.txt" in line for line in lines) + assert any("Received from root.dict.dst_w" in line for line in lines) print("Succeeded App!") From 637a172a339b6b4fcb8a0ef7ce99c8a386f800bb Mon Sep 17 00:00:00 2001 From: thomas Date: Fri, 9 Dec 2022 23:19:42 +0000 Subject: [PATCH 2/2] update --- src/lightning_app/testing/testing.py | 4 ++-- tests/tests_examples_app/public/test_boring_app.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lightning_app/testing/testing.py b/src/lightning_app/testing/testing.py index 40b705458dd49..0c73f79b59822 100644 --- a/src/lightning_app/testing/testing.py +++ b/src/lightning_app/testing/testing.py @@ -488,12 +488,12 @@ def wait_for(page, callback: Callable, *args, **kwargs) -> Any: except (playwright._impl._api_types.Error, playwright._impl._api_types.TimeoutError) as e: print(e) try: - sleep(5) + sleep(7) page.reload() except (playwright._impl._api_types.Error, playwright._impl._api_types.TimeoutError) as e: print(e) pass - sleep(2) + sleep(3) def _delete_lightning_app(client, project_id, app_id, app_name): diff --git a/tests/tests_examples_app/public/test_boring_app.py b/tests/tests_examples_app/public/test_boring_app.py index a5177d0a18062..80be34745a1de 100644 --- a/tests/tests_examples_app/public/test_boring_app.py +++ b/tests/tests_examples_app/public/test_boring_app.py @@ -10,7 +10,7 @@ @pytest.mark.cloud def test_boring_app_example_cloud() -> None: - with run_app_in_cloud(os.path.join(_PATH_EXAMPLES, "app_boring"), app_name="app_dynamic.py", debug=True,) as ( + with run_app_in_cloud(os.path.join(_PATH_EXAMPLES, "app_boring"), app_name="app_dynamic.py", debug=True) as ( _, view_page, _,