From 4d59bcddfdde0fb6ad2e2850359155b8e4d6de11 Mon Sep 17 00:00:00 2001 From: Wojciech Baranowski Date: Sat, 14 Dec 2019 19:38:57 +0200 Subject: [PATCH] test_status_imported_git_file --- tests/func/test_import.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/func/test_import.py b/tests/func/test_import.py index cce712f8a..12b6904c4 100644 --- a/tests/func/test_import.py +++ b/tests/func/test_import.py @@ -43,6 +43,16 @@ def test_import_git_file(erepo_dir, tmp_dir, dvc, scm): assert tmp_dir.scm.repo.git.check_ignore(str(tmp_dir / dst)) +def test_status_imported_git_file(erepo_dir, tmp_dir, dvc, scm): + src = "some_file" + dst = "some_file_imported" + + erepo_dir.scm_gen({src: "hello"}, commit="add a regular file") + + tmp_dir.dvc.imp(str(erepo_dir), src, dst) + tmp_dir.dvc.status([dst + ".dvc"]) + + def test_import_git_dir(erepo_dir, tmp_dir, dvc, scm): src = "some_directory" dst = "some_directory_imported"