mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
Merge pull request #1651 from mroutis/fix-1617
status: imply --cloud when a remote is given
This commit is contained in:
+1
-1
@@ -76,7 +76,7 @@ def status(
|
||||
all_tags=False,
|
||||
):
|
||||
with self.state:
|
||||
if cloud:
|
||||
if cloud or remote:
|
||||
return _cloud_status(
|
||||
self,
|
||||
target,
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user