Skip to content

Commit e1428ae

Browse files
committed
✅ Test find_config w/o Git
1 parent 462e43c commit e1428ae

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cherry_picker/cherry_picker/test.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,11 @@ def test_find_config_not_found(tmpdir, cd):
252252
assert find_config(scm_revision) is None
253253

254254

255+
def test_find_config_not_git(tmpdir, cd):
256+
cd(tmpdir)
257+
assert find_config(None) is None
258+
259+
255260
def test_load_full_config(tmpdir, cd):
256261
cd(tmpdir)
257262
subprocess.run('git init .'.split(), check=True)

0 commit comments

Comments
 (0)