2021-12-16 23:07:38 -05:00
|
|
|
from tests.test_helpers.click_helpers import run_datahub_cmd
|
2021-04-01 12:15:05 -07:00
|
|
|
|
|
|
|
|
|
|
|
def test_cli_help():
|
2021-12-16 23:07:38 -05:00
|
|
|
result = run_datahub_cmd(["--help"])
|
2021-04-01 12:15:05 -07:00
|
|
|
assert result.output
|
|
|
|
|
|
|
|
|
2021-04-05 19:11:28 -07:00
|
|
|
def test_cli_version():
|
2021-12-16 23:07:38 -05:00
|
|
|
result = run_datahub_cmd(["--debug", "version"])
|
2021-04-05 19:11:28 -07:00
|
|
|
assert result.output
|
|
|
|
|
|
|
|
|
2021-04-01 12:15:05 -07:00
|
|
|
def test_check_local_docker():
|
|
|
|
# This just verifies that it runs without error.
|
|
|
|
# We don't actually know what environment this will be run in, so
|
|
|
|
# we can't depend on the output. Eventually, we should mock the docker SDK.
|
2021-12-16 23:07:38 -05:00
|
|
|
result = run_datahub_cmd(["check", "local-docker"], check_result=False)
|
2021-04-01 12:15:05 -07:00
|
|
|
assert result.output
|