|
12 | 12 | # or implied. See the License for the specific language governing |
13 | 13 | # permissions and limitations under the License. |
14 | 14 |
|
15 | | -import pytest |
16 | | -from click.testing import CliRunner |
17 | | - |
18 | | -from zenml.cli.example import info, list, pull |
19 | | - |
20 | | -ZERO_FIVE_RELEASE_EXAMPLES = ["airflow", "legacy", "quickstart"] |
21 | | - |
22 | | - |
23 | | -@pytest.mark.parametrize("example", ZERO_FIVE_RELEASE_EXAMPLES) |
24 | | -def test_list_returns_three_examples_for_0_5_release(example: str) -> None: |
25 | | - """Check the examples returned from zenml example list""" |
26 | | - runner = CliRunner() |
27 | | - runner.invoke(pull, ["--force-redownload", "0.5.0"]) |
28 | | - with runner.isolated_filesystem(): |
29 | | - result = runner.invoke(list) |
30 | | - assert result.exit_code == 0 |
31 | | - assert example in result.output |
32 | | - |
33 | | - |
34 | | -@pytest.mark.parametrize("example", ZERO_FIVE_RELEASE_EXAMPLES) |
35 | | -def test_info_returns_zero_exit_code(example: str) -> None: |
36 | | - """Check info command exits without errors""" |
37 | | - runner = CliRunner() |
38 | | - result = runner.invoke(info, [example]) |
39 | | - assert result.exit_code == 0 |
40 | | - |
41 | | - |
42 | | -def test_pull_command_returns_zero_exit_code() -> None: |
43 | | - """Check pull command exits without errors""" |
44 | | - runner = CliRunner() |
45 | | - with runner.isolated_filesystem(): |
46 | | - result = runner.invoke(pull) |
47 | | - assert result.exit_code == 0 |
| 15 | +# import pytest |
| 16 | +# from click.testing import CliRunner |
| 17 | +# |
| 18 | +# from zenml.cli.example import info, list, pull |
| 19 | +# |
| 20 | +# ZERO_FIVE_RELEASE_EXAMPLES = ["airflow", "legacy", "quickstart"] |
| 21 | +# |
| 22 | +# |
| 23 | +# @pytest.mark.parametrize("example", ZERO_FIVE_RELEASE_EXAMPLES) |
| 24 | +# def test_list_returns_three_examples_for_0_5_release(example: str) -> None: |
| 25 | +# """Check the examples returned from zenml example list""" |
| 26 | +# runner = CliRunner() |
| 27 | +# runner.invoke(pull, ["--force-redownload", "0.5.0"]) |
| 28 | +# with runner.isolated_filesystem(): |
| 29 | +# result = runner.invoke(list) |
| 30 | +# assert result.exit_code == 0 |
| 31 | +# assert example in result.output |
| 32 | +# |
| 33 | +# |
| 34 | +# @pytest.mark.parametrize("example", ZERO_FIVE_RELEASE_EXAMPLES) |
| 35 | +# def test_info_returns_zero_exit_code(example: str) -> None: |
| 36 | +# """Check info command exits without errors""" |
| 37 | +# runner = CliRunner() |
| 38 | +# result = runner.invoke(info, [example]) |
| 39 | +# assert result.exit_code == 0 |
| 40 | +# |
| 41 | +# |
| 42 | +# def test_pull_command_returns_zero_exit_code() -> None: |
| 43 | +# """Check pull command exits without errors""" |
| 44 | +# runner = CliRunner() |
| 45 | +# with runner.isolated_filesystem(): |
| 46 | +# result = runner.invoke(pull) |
| 47 | +# assert result.exit_code == 0 |
0 commit comments