9
9
from lightning .app .testing .helpers import _RunIf
10
10
11
11
12
+ @pytest .mark .xfail (strict = False , reason = "lightning app cli was deprecated" )
12
13
@mock .patch ("lightning.app.cli.cmd_install.subprocess" , mock .MagicMock ())
13
14
def test_valid_org_app_name ():
14
15
"""Valid organization name."""
@@ -69,6 +70,7 @@ def test_app_install(tmpdir, monkeypatch):
69
70
assert test_app_pip_name in str (new_env_output ), f"{ test_app_pip_name } should be in the env"
70
71
71
72
73
+ @pytest .mark .xfail (strict = False , reason = "lightning app cli was deprecated" )
72
74
@mock .patch ("lightning.app.cli.cmd_install.subprocess" , mock .MagicMock ())
73
75
def test_valid_org_component_name ():
74
76
runner = CliRunner ()
@@ -135,6 +137,7 @@ def test_component_install(real_component, test_component_pip_name):
135
137
), f"{ test_component_pip_name } should not be in the env after cleanup"
136
138
137
139
140
+ @pytest .mark .xfail (strict = False , reason = "lightning app cli was deprecated" )
138
141
def test_prompt_actions ():
139
142
# TODO: each of these installs must check that a package is installed in the environment correctly
140
143
app_to_use = "lightning/invideo"
@@ -164,6 +167,7 @@ def test_prompt_actions():
164
167
# result = runner.invoke(lightning_cli.cmd_install.install_app, [app_to_use], input='')
165
168
166
169
170
+ @pytest .mark .xfail (strict = False , reason = "lightning app cli was deprecated" )
167
171
@mock .patch ("lightning.app.cli.cmd_install.subprocess" , mock .MagicMock ())
168
172
def test_version_arg_component (tmpdir , monkeypatch ):
169
173
monkeypatch .chdir (tmpdir )
@@ -186,6 +190,7 @@ def test_version_arg_component(tmpdir, monkeypatch):
186
190
assert result .exit_code == 0
187
191
188
192
193
+ @pytest .mark .xfail (strict = False , reason = "lightning app cli was deprecated" )
189
194
@mock .patch ("lightning.app.cli.cmd_install.subprocess" , mock .MagicMock ())
190
195
@mock .patch ("lightning.app.cli.cmd_install.os.chdir" , mock .MagicMock ())
191
196
def test_version_arg_app (tmpdir ):
@@ -237,6 +242,7 @@ def test_install_resolve_latest_version(mock_show_install_app_prompt, tmpdir):
237
242
assert mock_show_install_app_prompt .call_args [0 ][0 ]["version" ] == "0.0.4"
238
243
239
244
245
+ @pytest .mark .xfail (strict = False , reason = "lightning app cli was deprecated" )
240
246
def test_proper_url_parsing ():
241
247
name = "lightning/invideo"
242
248
@@ -311,12 +317,14 @@ def test_install_app_shows_error(tmpdir):
311
317
# os.chdir(cwd)
312
318
313
319
320
+ @pytest .mark .xfail (strict = False , reason = "lightning app cli was deprecated" )
314
321
def test_app_and_component_gallery_app (monkeypatch ):
315
322
monkeypatch .setattr (cmd_install , "_install_app_from_source" , mock .MagicMock ())
316
323
path = cmd_install .gallery_apps_and_components ("lightning/flashy" , True , "latest" )
317
324
assert path == os .path .join (os .getcwd (), "app.py" )
318
325
319
326
327
+ @pytest .mark .xfail (strict = False , reason = "lightning app cli was deprecated" )
320
328
def test_app_and_component_gallery_component (monkeypatch ):
321
329
monkeypatch .setattr (cmd_install , "_install_app_from_source" , mock .MagicMock ())
322
330
path = cmd_install .gallery_apps_and_components ("lightning/lit-jupyter" , True , "latest" )
0 commit comments