aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/doctests/test_GitRepository.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2016-12-23 21:03:25 +0100
committerGuido Günther <agx@sigxcpu.org>2016-12-23 21:18:27 +0100
commit7b297b719f1a0318b07675dab186cb2ab6459bc5 (patch)
tree3b2fa5318a4ceec340567bbd9c183ec59582b241 /tests/doctests/test_GitRepository.py
parent62c368cb83eb6a7b9e9dc14bb8701d15279afb3a (diff)
GitRepository: allow to check cleaniness of arbitrary paths
Diffstat (limited to 'tests/doctests/test_GitRepository.py')
-rw-r--r--tests/doctests/test_GitRepository.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/doctests/test_GitRepository.py b/tests/doctests/test_GitRepository.py
index a5d6c534..e353df84 100644
--- a/tests/doctests/test_GitRepository.py
+++ b/tests/doctests/test_GitRepository.py
@@ -90,6 +90,12 @@ def test_add_files():
... os.path.join(repo.path, "testfile"))
>>> repo.is_clean()[0]
False
+ >>> repo.is_clean('doesnotexist')[0]
+ True
+ >>> repo.is_clean(paths='testfile')[0]
+ False
+ >>> repo.is_clean(paths=['doesnotexist', 'testfile'])[0]
+ False
>>> repo.is_clean(ignore_untracked=True)[0]
True
>>> repo.add_files(repo.path, force=True)