From 63f4ca304bddf019220912b7b8e2abe585d88fe0 Mon Sep 17 00:00:00 2001 From: Sjoerd Langkemper Date: Tue, 9 Nov 2021 11:55:51 +0000 Subject: Add raise_if_error() to tutorial --- test/test_docs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/test_docs.py') 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] -- cgit v1.2.1