dvc: replace StageNotFoundError with NotDvcFileError

Fixes #760

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2018-06-13 14:00:03 +03:00
parent 0ffcdd669a
commit 78e5b166fe
5 changed files with 13 additions and 22 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ import os
from dvc.main import main
from dvc.stage import Stage
from dvc.project import StageNotFoundError
from dvc.project import NotDvcFileError
from dvc.command.remove import CmdRemove
from tests.basic_env import TestDvc
@@ -26,7 +26,7 @@ class TestRemove(TestDvc):
class TestRemoveNonExistentFile(TestDvc):
def test(self):
with self.assertRaises(StageNotFoundError) as cx:
with self.assertRaises(NotDvcFileError) as cx:
self.dvc.remove('non_existent_dvc_file')