test: add test for Updater

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2018-07-01 20:13:27 +03:00
parent 95f3b49db8
commit 6219b28be6
+18
View File
@@ -0,0 +1,18 @@
import os
from dvc.updater import Updater
from tests.basic_env import TestDvc
class TestDvcUpdater(TestDvc):
def test(self):
# NOTE: need to temporarily unset CI env to allow updater to work
env = os.environ.copy()
os.environ['CI'] = 'False'
self.dvc.updater.check()
self.dvc.updater.check()
self.dvc.updater.check()
os.environ = env