diff options
| author | Gauvain Pocentek <gauvain.pocentek@objectif-libre.com> | 2016-01-23 18:10:20 +0100 |
|---|---|---|
| committer | Gauvain Pocentek <gauvain.pocentek@objectif-libre.com> | 2016-01-23 18:10:20 +0100 |
| commit | c22a19e8f8221dbc16bbcfb17b669a31eac16d82 (patch) | |
| tree | 6b7fbb030166962699c848dc612f8bae43c7dfe3 /tools/python_test.py | |
| parent | 4e21343c26ab4c0897abd65ba67fa6f2b8490675 (diff) | |
| download | gitlab-c22a19e8f8221dbc16bbcfb17b669a31eac16d82.tar.gz | |
fix the API test for decode()
Diffstat (limited to 'tools/python_test.py')
| -rw-r--r-- | tools/python_test.py | 9 |
1 files changed, 5 insertions, 4 deletions
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 |
