Skip to content

Commit

Permalink
fix: remove W-I-P test for cli
Browse files Browse the repository at this point in the history
  • Loading branch information
vykozlov committed Aug 26, 2024
1 parent ce1a46a commit a0a1780
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions deepaas/tests/test_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

import mock

from deepaas.cmd import cli
#from deepaas.cmd import cli # W-I-P
from deepaas.cmd import execute
from deepaas.cmd import run
from deepaas.tests import base
Expand Down Expand Up @@ -65,13 +65,13 @@ def test_run_custom_ip_port(self, m_get_app, m_run_app, m_handle_signals):
m_handle_signals.assert_called_once()

# W-I-P
class TestCLI(base.TestCase):
@mock.patch("deepaas.cmd.cli.main")
def test_cli_get_metadata(self, m_cli_get_meta):
self.flags(methods="get_metadata")
with mock.patch.object(sys, "argv", ["deepaas-cli"]):
cli.main()
m_cli_get_meta.assert_called_once()
#class TestCLI(base.TestCase):
# @mock.patch("deepaas.cmd.cli.main")
# def test_cli_get_metadata(self, m_cli_get_meta):
# self.flags(methods="get_metadata")
# with mock.patch.object(sys, "argv", ["deepaas-cli"]):
# cli.main()
# m_cli_get_meta.assert_called_once()

class TestExecute(base.TestCase):
@mock.patch("deepaas.cmd.execute.prediction")
Expand Down

0 comments on commit a0a1780

Please sign in to comment.