Skip to content

Commit

Permalink
Add test capturing failed expectation.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jul 27, 2024
1 parent af202d1 commit e2395a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jaraco/develop/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,11 @@ def projects():


def exists(project, target):
"""
>>> target = path.Path(getfixture('tmp_path'))
>>> exists('foo', target)
False
"""
return target.joinpath(posixpath.basename(resolve(project))).isdir()


Expand Down

0 comments on commit e2395a1

Please sign in to comment.