summaryrefslogtreecommitdiff
path: root/tools/python_test_v4.py
diff options
context:
space:
mode:
authorVincent Lae <vincent.lae@gmail.com>2019-10-04 22:11:49 +0200
committerVincent Lae <vincent.lae@gmail.com>2019-10-04 22:26:24 +0200
commitf5b4a113a298d33cb72f80c94d85bdfec3c4e149 (patch)
tree02b5043610b2ff15e5c3db38b88efc4c568b8f28 /tools/python_test_v4.py
parentba2b60e32c12cacf18762a286d05e073529b9898 (diff)
downloadgitlab-f5b4a113a298d33cb72f80c94d85bdfec3c4e149.tar.gz
feat(project): add file blame api
https://docs.gitlab.com/ee/api/repository_files.html#get-file-blame-from-repository
Diffstat (limited to 'tools/python_test_v4.py')
-rw-r--r--tools/python_test_v4.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/python_test_v4.py b/tools/python_test_v4.py
index a27d854..9085f6f 100644
--- a/tools/python_test_v4.py
+++ b/tools/python_test_v4.py
@@ -423,6 +423,8 @@ readme = admin_project.files.get(file_path="README.rst", ref="master")
# object method
assert readme.decode().decode() == "Initial content"
+blame = admin_project.files.blame(file_path="README.rst", ref="master")
+
data = {
"branch": "master",
"commit_message": "blah blah blah",