diff options
author | Sjoerd Langkemper <sjoerd-github@linuxonly.nl> | 2021-11-09 11:55:51 +0000 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2021-11-13 15:20:20 +0800 |
commit | 63f4ca304bddf019220912b7b8e2abe585d88fe0 (patch) | |
tree | 02faf6ac32c9723765fae90ef63ed7640519e6d4 | |
parent | 699e223c51d99d1fc8d05b2b0fe0ef1e2ee7fd01 (diff) | |
download | gitpython-63f4ca304bddf019220912b7b8e2abe585d88fe0.tar.gz |
Add raise_if_error() to tutorial
-rw-r--r-- | test/test_docs.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_docs.py b/test/test_docs.py index 220156bc..8897bbb7 100644 --- a/test/test_docs.py +++ b/test/test_docs.py @@ -393,7 +393,8 @@ class Tutorials(TestBase): origin.rename('new_origin') # push and pull behaves similarly to `git push|pull` origin.pull() - origin.push() + origin.push() # attempt push, ignore errors + origin.push().raise_if_error() # push and raise error if it fails # assert not empty_repo.delete_remote(origin).exists() # create and delete remotes # ![25-test_references_and_objects] |