summaryrefslogtreecommitdiff
path: root/test/test_repo.py
diff options
context:
space:
mode:
authorMichael Mercier <michael.mercier@ryax.tech>2021-03-16 10:00:51 +0100
committerMichael Mercier <michael.mercier@ryax.tech>2021-03-16 10:16:34 +0100
commitffddedf5467df993b7a42fbd15afacb901bca6d7 (patch)
treeb43ffc85ba78261e9446e5a9446de82054d707dc /test/test_repo.py
parent50cbafc690e5692a16148dbde9de680be70ddbd1 (diff)
downloadgitpython-ffddedf5467df993b7a42fbd15afacb901bca6d7.tar.gz
Use copy and not inplace remove password + working case test
Diffstat (limited to 'test/test_repo.py')
-rw-r--r--test/test_repo.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test_repo.py b/test/test_repo.py
index ac4c6660..8dc17833 100644
--- a/test/test_repo.py
+++ b/test/test_repo.py
@@ -240,7 +240,6 @@ class TestRepo(TestBase):
@with_rw_directory
def test_leaking_password_in_clone_logs(self, rw_dir):
- """Check that the password is not printed on the logs"""
password = "fakepassword1234"
try:
Repo.clone_from(
@@ -249,6 +248,10 @@ class TestRepo(TestBase):
to_path=rw_dir)
except GitCommandError as err:
assert password not in str(err), "The error message '%s' should not contain the password" % err
+ # Working example from a blank private project
+ Repo.clone_from(
+ url="https://gitlab+deploy-token-392045:mLWhVus7bjLsy8xj8q2V@gitlab.com/mercierm/test_git_python",
+ to_path=rw_dir)
@with_rw_repo('HEAD')
def test_max_chunk_size(self, repo):