mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-23 23:09:44 +01:00
dvc: replace StageNotFoundError with NotDvcFileError
Fixes #760 Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user