Small tests headers fixes

This commit is contained in:
Dmitry Petrov
2017-06-19 18:21:58 -07:00
parent 17ffcea10f
commit 0e3278641c
4 changed files with 2 additions and 34 deletions
-27
View File
@@ -100,33 +100,6 @@ class TestRemoveEndToEnd(DirHierarchyEnvironment):
def setUp(self):
DirHierarchyEnvironment.init_environment(self)
# def test_end_to_end_with_an_error(self):
# cmd = CmdDataRemove(self.settings)
# cmd.parsed_args.keep_in_cloud = True
#
# dir11_full = self.dir11
# dir2_full = self.dir2
# file6_full = self.file6
#
# cmd.parsed_args.target = [dir11_full, self.file5, file6_full]
# cmd.parsed_args.recursive = True
#
# cmd.parsed_args.skip_git_actions = True
#
# self.assertTrue(os.path.exists(dir11_full))
# self.assertTrue(os.path.exists(self.file5))
# self.assertTrue(os.path.exists(dir2_full))
# self.assertTrue(os.path.exists(self.file1))
# self.assertTrue(os.path.exists(self.file6))
#
# self.assertFalse(cmd.remove_all_targets())
#
# self.assertFalse(os.path.exists(dir11_full))
# self.assertFalse(os.path.exists(self.file5))
# self.assertTrue(os.path.exists(dir2_full))
# self.assertTrue(os.path.exists(self.file1))
# self.assertTrue(os.path.exists(self.file6))
def test_end_to_end_with_no_error(self):
cmd = CmdDataRemove(self.settings)
cmd.parsed_args.keep_in_cloud = True
+2 -1
View File
@@ -1,4 +1,5 @@
import glob, os
import glob
import os
from dvc.command.gc import CmdGC
from dvc.config import ConfigI
-5
View File
@@ -1,7 +1,4 @@
import io
import os
import shutil
import traceback
from unittest import TestCase
import mock
@@ -18,8 +15,6 @@ except ImportError:
# Python 3
builtin_module_name = 'builtins'
from dvc.path.path import Path
from dvc.system import System
from dvc.config import Config
from dvc.data_cloud import DataCloud
from dvc.settings import Settings
-1
View File
@@ -4,7 +4,6 @@ from dvc.command.remove import CmdDataRemove
from dvc.command.repro import CmdRepro
from dvc.command.run import CmdRun
from dvc.executor import Executor
from dvc.logger import Logger
from tests.test_cmd_run import RunBasicTest