|
41 | 41 | V1Work, |
42 | 42 | ) |
43 | 43 |
|
44 | | -from lightning_app import _PROJECT_ROOT, BuildConfig, LightningApp, LightningWork |
| 44 | +from lightning_app import BuildConfig, LightningApp, LightningWork |
45 | 45 | from lightning_app.runners import backends, cloud, CloudRuntime |
46 | 46 | from lightning_app.runners.cloud import ( |
47 | 47 | _generate_works_json_gallery, |
48 | 48 | _generate_works_json_web, |
49 | 49 | _validate_build_spec_and_compute, |
50 | 50 | ) |
51 | 51 | from lightning_app.storage import Drive, Mount |
52 | | -from lightning_app.testing.helpers import EmptyFlow, EmptyWork |
| 52 | +from lightning_app.testing.helpers import EmptyWork |
53 | 53 | from lightning_app.utilities.cloud import _get_project |
54 | 54 | from lightning_app.utilities.dependency_caching import get_hash |
55 | 55 | from lightning_app.utilities.packaging.cloud_compute import CloudCompute |
@@ -1222,16 +1222,6 @@ def test_project_has_sufficient_credits(): |
1222 | 1222 | assert cloud_runtime._project_has_sufficient_credits(project) is result |
1223 | 1223 |
|
1224 | 1224 |
|
1225 | | -@mock.patch( |
1226 | | - "lightning_app.runners.cloud.load_app_from_file", |
1227 | | - MagicMock(side_effect=ModuleNotFoundError("Module X not found")), |
1228 | | -) |
1229 | | -def test_load_app_from_file_module_error(): |
1230 | | - empty_app = CloudRuntime.load_app_from_file(os.path.join(_PROJECT_ROOT, "examples", "app_v0", "app.py")) |
1231 | | - assert isinstance(empty_app, LightningApp) |
1232 | | - assert isinstance(empty_app.root, EmptyFlow) |
1233 | | - |
1234 | | - |
1235 | 1225 | @pytest.mark.parametrize( |
1236 | 1226 | "lines", |
1237 | 1227 | [ |
|
0 commit comments