status: imply --cloud when a remote is given

Fix #1617
This commit is contained in:
Mr. Outis
2019-02-21 18:32:48 -06:00
parent 9a298fc835
commit 5cfcc956db
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ def status(
all_tags=False,
):
with self.state:
if cloud:
if cloud or remote:
return _cloud_status(
self,
target,
+6
View File
@@ -3,6 +3,7 @@ import os
from dvc.main import main
from tests.basic_env import TestDvc
from mock import patch
class TestStatus(TestDvc):
@@ -17,3 +18,8 @@ class TestStatus(TestDvc):
ret = main(["status", "--quiet"])
self.assertEqual(ret, 1)
@patch("dvc.repo.status._cloud_status", return_value=True)
def test_implied_cloud(self, mock_status):
main(["status", "--remote", "something"])
mock_status.assert_called()