Skip to content

Commit

Permalink
add test for pypa#109
Browse files Browse the repository at this point in the history
  • Loading branch information
RonnyPfannschmidt committed Oct 13, 2016
1 parent 7961046 commit f9747f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions testing/test_git.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,12 @@ def test_version_from_git(wd):


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


Expand Down

0 comments on commit f9747f4

Please sign in to comment.