forked from LBRYCommunity/lbry-sdk
test cli fix, take 2
This commit is contained in:
parent
e0cea60c87
commit
e2964f9728
1 changed files with 2 additions and 2 deletions
|
@ -87,13 +87,13 @@ class CLITest(AsyncioTestCase):
|
||||||
def test_valid_command_daemon_not_started(self):
|
def test_valid_command_daemon_not_started(self):
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
"Could not connect to daemon. Are you sure it's running?",
|
"Could not connect to daemon. Are you sure it's running?",
|
||||||
self.shell(["publish", 'asd', '99', '/blah/foo'])
|
self.shell(["publish", 'asd', '99', '/blah/foo', 'video'])
|
||||||
)
|
)
|
||||||
|
|
||||||
def test_deprecated_command_daemon_not_started(self):
|
def test_deprecated_command_daemon_not_started(self):
|
||||||
actual_output = StringIO()
|
actual_output = StringIO()
|
||||||
with contextlib.redirect_stdout(actual_output):
|
with contextlib.redirect_stdout(actual_output):
|
||||||
main(["channel", "new", "@foo", "1.0", "video"])
|
main(["channel", "new", "@foo", "1.0"])
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
actual_output.getvalue().strip(),
|
actual_output.getvalue().strip(),
|
||||||
"channel_new is deprecated, using channel_create.\n"
|
"channel_new is deprecated, using channel_create.\n"
|
||||||
|
|
Loading…
Add table
Reference in a new issue