Skip to content

Commit f9747f4

Browse files
add test for pypa#109
1 parent 7961046 commit f9747f4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

testing/test_git.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,12 @@ def test_version_from_git(wd):
3434

3535

3636
@pytest.mark.issue(108)
37+
@pytest.mark.issue(109)
3738
def test_git_worktree(wd):
3839
wd.write('test.txt', 'test2')
40+
# untracked files dont change the state
41+
assert wd.version == '0.1.dev0'
42+
wd('git add test.txt')
3943
assert wd.version.startswith('0.1.dev0+d')
4044

4145

0 commit comments

Comments
 (0)