Merge pull request #1651 from mroutis/fix-1617

status: imply --cloud when a remote is given
This commit is contained in:
Ruslan Kuprieiev
2019-02-22 13:02:29 +02:00
committed by GitHub
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()