mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 23:10:42 +01:00
test: add test for Updater
Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user