From e2395a146096f4b654784760f5b37dd7a9fb8ea0 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sat, 27 Jul 2024 12:54:15 -0400 Subject: [PATCH] Add test capturing failed expectation. --- jaraco/develop/git.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/jaraco/develop/git.py b/jaraco/develop/git.py index 2ae2029..65b393b 100644 --- a/jaraco/develop/git.py +++ b/jaraco/develop/git.py @@ -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()