config: support 'global' and 'system' configs

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2018-12-01 02:31:14 +02:00
parent a0ba0ef19a
commit c02fe1313f
9 changed files with 232 additions and 103 deletions
+3 -1
View File
@@ -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)
+2
View File
@@ -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'