mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-01 23:08:43 +01:00
* add special folder warning * add special folder warning * remove special folder warning, start working on default dvcignore * add default .dvcignote and templates * remove dvcignore templates * change text and add tests * refactor * dvcignore: ignore comments * adjust tests Co-authored-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
co-authored by
Ruslan Kuprieiev
parent
64f038fda8
commit
5cb36fc983
@@ -101,3 +101,13 @@ def test_subdir_init_no_option(tmp_dir, scm, monkeypatch, caplog):
|
||||
"`--subdir` if initializing inside a subdirectory of a parent SCM "
|
||||
"repository.".format(os.fspath(tmp_dir / "subdir"))
|
||||
) in caplog.text
|
||||
|
||||
|
||||
def test_gen_dvcignore(tmp_dir):
|
||||
DvcRepo.init(no_scm=True)
|
||||
text = (
|
||||
"# Add patterns of files dvc should ignore, which could improve\n"
|
||||
"# the performance. Learn more at\n"
|
||||
"# https://dvc.org/doc/user-guide/dvcignore\n"
|
||||
)
|
||||
assert text == (tmp_dir / ".dvcignore").read_text()
|
||||
|
||||
Reference in New Issue
Block a user