diff options
author | Michael Mercier <michael.mercier@ryax.tech> | 2021-03-12 09:05:39 +0100 |
---|---|---|
committer | Michael Mercier <michael.mercier@ryax.tech> | 2021-03-12 09:05:39 +0100 |
commit | b650c4f28bda658d1f3471882520698ef7fb3af6 (patch) | |
tree | ec0bad853366dec27753c3fc3a18620f5ee771e2 | |
parent | 1d43a751e578e859e03350f198bca77244ba53b5 (diff) | |
download | gitpython-b650c4f28bda658d1f3471882520698ef7fb3af6.tar.gz |
Better assert message
-rw-r--r-- | test/test_repo.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test_repo.py b/test/test_repo.py index 65e69c52..ac4c6660 100644 --- a/test/test_repo.py +++ b/test/test_repo.py @@ -244,10 +244,11 @@ class TestRepo(TestBase): password = "fakepassword1234" try: Repo.clone_from( - url="https://fakeuser:{}@fakerepo.example.com/testrepo".format(password), + url="https://fakeuser:{}@fakerepo.example.com/testrepo".format( + password), to_path=rw_dir) except GitCommandError as err: - assert password not in str(err) + assert password not in str(err), "The error message '%s' should not contain the password" % err @with_rw_repo('HEAD') def test_max_chunk_size(self, repo): |