mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
tests: add test_updater
Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import os
|
||||
|
||||
from tests.basic_env import TestDvc
|
||||
|
||||
|
||||
class TestUpdater(TestDvc):
|
||||
def test(self):
|
||||
# NOTE: only test on travis CRON to avoid generating too much logs
|
||||
travis = os.getenv('TRAVIS') == 'true'
|
||||
if not travis:
|
||||
return
|
||||
|
||||
cron = os.getenv('TRAVIS_EVENT_TYPE') == 'cron'
|
||||
if not cron:
|
||||
return
|
||||
|
||||
env = os.environ.copy()
|
||||
if os.getenv('CI'):
|
||||
del os.environ['CI']
|
||||
|
||||
self.dvc.updater.check()
|
||||
self.dvc.updater.check()
|
||||
self.dvc.updater.check()
|
||||
|
||||
os.environ = env.copy()
|
||||
Reference in New Issue
Block a user