File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
from unittest import mock
2
+ from unittest .mock import MagicMock
2
3
3
4
from click .testing import CliRunner
4
5
from lightning_cloud .openapi import Externalv1Cluster
7
8
from lightning_app .cli .lightning_cli import cluster_logs
8
9
9
10
11
+ @mock .patch ("lightning_app.cli.lightning_cli.LightningClient" , MagicMock ())
12
+ @mock .patch ("lightning_app.utilities.network.LightningClient" , MagicMock ())
10
13
@mock .patch ("lightning_app.cli.lightning_cli.AWSClusterManager.get_clusters" )
11
- @mock .patch ("lightning_app.cli.lightning_cli.LightningClient" )
12
- def test_show_logs_errors (client , get_clusters ):
14
+ def test_show_logs_errors (get_clusters ):
13
15
"""Test that the CLI prints the errors for the show logs command."""
14
16
15
17
runner = CliRunner ()
You can’t perform that action at this time.
0 commit comments