From c22a19e8f8221dbc16bbcfb17b669a31eac16d82 Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Sat, 23 Jan 2016 18:10:20 +0100 Subject: fix the API test for decode() --- tools/python_test.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'tools/python_test.py') diff --git a/tools/python_test.py b/tools/python_test.py index b1ad953..2231132 100644 --- a/tools/python_test.py +++ b/tools/python_test.py @@ -106,10 +106,11 @@ readme.content = base64.b64encode("Improved README") readme.save(branch_name="master", commit_message="new commit") readme.delete(commit_message="Removing README") -readme = admin_project.files.create({'file_path': 'README.rst', - 'branch_name': 'master', - 'content': 'Initial content', - 'commit_message': 'New commit'}) +admin_project.files.create({'file_path': 'README.rst', + 'branch_name': 'master', + 'content': 'Initial content', + 'commit_message': 'New commit'}) +readme = admin_project.files.get(file_path='README.rst', ref='master') assert(readme.decode() == 'Initial content') # labels -- cgit v1.2.1