a *NaV@s:dZddlZddlZddlmZejddZddZdS)zL GitLab API: https://docs.gitlab.com/ee/api/jobs.html#list-pipeline-bridges N)ProjectPipelineBridgeccsdddddddddd d d d d dddddddddddddddddddddddddddd d d!ddd d"d#d$d%}ddd&d'd(d)d*d+g}tD}|jtjd,|gd-d.d/|jtjd0|d-d.d/|VWdn1s0YdS)1Nzadmin@example.comZ Administratorz2015-12-24T16:51:14.000+01:00Z(0ff3ae198f8601a285adcf5c0fff204ee6fba5fdzTest the CI integration.Z0ff3ae19) author_emailZ author_name created_atidmessageZshort_idtitleFz2015-12-24T15:51:21.802Zz2015-12-24T17:54:27.722Zz2015-12-24T17:58:27.895ZZteaspoonZmasterpendingz2015-12-24T15:50:16.123Zz2015-12-24T18:00:44.432Zz'https://example.com/foo/bar/pipelines/6)rrefshastatusr updated_atweb_urltestz$https://example.com/foo/bar/-/jobs/7rootactivezPhttp://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identiconzhttp://gitlab.dev/rootz2015-12-21T13:14:24.077Z) rnameusernamestateZ avatar_urlrrZ public_emailZskypeZlinkedinZtwitterZ website_urlZ organization(f62a4b2fb89754372a346f24659212eb8da13601z2015-12-24T17:58:27.896Zz8https://example.com/diaspora/diaspora-client/pipelines/5)rr r rrrr)commitZ allow_failurerZ started_atZ finished_atdurationrrpipeliner Zstagertagruserdownstream_pipelinez new-pipelineZ(a91957a858320c0e17f3a0eca7cfacbff50ea29az(https://example.com/foo/bar/pipelines/47z2016-08-11T11:28:34.085Zz2016-08-11T11:32:35.169Z)rrr r rrrz6http://localhost/api/v4/projects/1/pipelines/6/bridgeszapplication/json)methodurljson content_typerz,http://localhost/api/v4/projects/1/pipelines) responsesZ RequestsMockaddGET)Zexport_bridges_contentZexport_pipelines_contentZrspsr)z/private/var/folders/js/6pj4vh5d4zd0k6bxv74qrbhr0000gr/T/pip-target-22xwyzbs/lib/python/tests/unit/objects/test_bridges.pyresp_list_bridges s  ; r+cCsh|jd}|j}t|ts&Jt|dts8J|djddksNJ|djddksdJdS)Nrrrr r)Z pipelineslistbridges isinstancerr )projectr+rr-r)r)r*$test_list_projects_pipelines_bridgescs  r0)__doc__Zpytestr&Zgitlab.v4.objectsrZfixturer+r0r)r)r)r*s   X