abgabesystem/tests/test_auth.py
2018-08-23 13:04:28 +02:00

8 lines
146 B
Python

import gitlab
def auth(config="/tmp/python-gitlab.cfg"):
gl = gitlab.Gitlab.from_config(config_files=[config])
gl.auth()
return gl