Skip to content

Commit c22a19e

Browse files
author
Gauvain Pocentek
committed
fix the API test for decode()
1 parent 4e21343 commit c22a19e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tools/python_test.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,11 @@
106106
readme.save(branch_name="master", commit_message="new commit")
107107
readme.delete(commit_message="Removing README")
108108

109-
readme = admin_project.files.create({'file_path': 'README.rst',
110-
'branch_name': 'master',
111-
'content': 'Initial content',
112-
'commit_message': 'New commit'})
109+
admin_project.files.create({'file_path': 'README.rst',
110+
'branch_name': 'master',
111+
'content': 'Initial content',
112+
'commit_message': 'New commit'})
113+
readme = admin_project.files.get(file_path='README.rst', ref='master')
113114
assert(readme.decode() == 'Initial content')
114115

115116
# labels

0 commit comments

Comments
 (0)