mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-29 15:28:28 +01:00
config: support 'global' and 'system' configs
Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
@@ -89,6 +89,8 @@ class TestConfigCLI(TestDvc):
|
||||
|
||||
def test_failed_write(self):
|
||||
class A(object):
|
||||
system = False
|
||||
glob = False
|
||||
local = False
|
||||
name = 'core.remote'
|
||||
value = 'myremote'
|
||||
@@ -98,5 +100,5 @@ class TestConfigCLI(TestDvc):
|
||||
cmd = CmdConfig(args)
|
||||
|
||||
cmd.configobj.write = None
|
||||
ret = cmd.save()
|
||||
ret = cmd.run()
|
||||
self.assertNotEqual(ret, 0)
|
||||
|
||||
@@ -30,6 +30,8 @@ class TestRemote(TestDvc):
|
||||
|
||||
def test_failed_write(self):
|
||||
class A(object):
|
||||
system = False
|
||||
glob = False
|
||||
local = False
|
||||
name = 'myremote'
|
||||
url = 's3://remote'
|
||||
|
||||
Reference in New Issue
Block a user