mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-18 15:28:28 +01:00
Small tests headers fixes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import glob, os
|
||||
import glob
|
||||
import os
|
||||
|
||||
from dvc.command.gc import CmdGC
|
||||
from dvc.config import ConfigI
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user