2017-11-08 02:57:32 +03:00
|
|
|
#!/usr/bin/env python3
|
2019-06-20 02:58:25 +03:00
|
|
|
# Copyright (c) Facebook, Inc. and its affiliates.
|
2017-11-08 02:57:32 +03:00
|
|
|
#
|
2019-06-20 02:58:25 +03:00
|
|
|
# This software may be used and distributed according to the terms of the
|
|
|
|
# GNU General Public License version 2.
|
2017-11-08 02:57:32 +03:00
|
|
|
|
2020-05-04 21:43:29 +03:00
|
|
|
from .lib import edenclient, testcase
|
2017-11-08 02:57:32 +03:00
|
|
|
|
|
|
|
|
2020-05-04 21:43:29 +03:00
|
|
|
class HelpTest(testcase.IntegrationTestCase):
|
2017-11-08 02:57:32 +03:00
|
|
|
"""
|
|
|
|
This test verifies the Eden CLI can at least load its Python code.
|
|
|
|
It can be removed when the remaining integration tests are enabled
|
|
|
|
on sandcastle.
|
|
|
|
"""
|
2018-05-10 07:33:49 +03:00
|
|
|
|
2018-04-05 03:31:28 +03:00
|
|
|
def test_eden_cli_help_returns_without_error(self) -> None:
|
2017-11-08 02:57:32 +03:00
|
|
|
with edenclient.EdenFS() as client:
|
2018-07-19 22:29:27 +03:00
|
|
|
cmd_result = client.run_unchecked("help")
|
|
|
|
self.assertEqual(0, cmd_result.returncode)
|