| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -88,7 +88,13 @@ def test_create_commit(project, resp_create_commit): | |||
| 88 | 88 | data = { | |
| 89 | 89 | "branch": "master", | |
| 90 | 90 | "commit_message": "Commit message", | |
| 91 | - "actions": [{"action": "create", "file_path": "README", "content": "",}], | ||
| 91 | + "actions": [ | ||
| 92 | + { | ||
| 93 | + "action": "create", | ||
| 94 | + "file_path": "README", | ||
| 95 | + "content": "", | ||
| 96 | + } | ||
| 97 | + ], | ||
| 92 | 98 | } | |
| 93 | 99 | commit = project.commits.create(data) | |
| 94 | 100 | assert commit.short_id == "ed899a2f" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -167,7 +167,9 @@ def resp_runner_delete(): | |||
| 167 | 167 | status=200, | |
| 168 | 168 | ) | |
| 169 | 169 | rsps.add( | |
| 170 | - method=responses.DELETE, url=pattern, status=204, | ||
| 170 | + method=responses.DELETE, | ||
| 171 | + url=pattern, | ||
| 172 | + status=204, | ||
| 171 | 173 | ) | |
| 172 | 174 | yield rsps | |
| 173 | 175 | ||
@@ -177,7 +179,9 @@ def resp_runner_disable(): | |||
| 177 | 179 | with responses.RequestsMock() as rsps: | |
| 178 | 180 | pattern = re.compile(r".*?/(groups|projects)/1/runners/6") | |
| 179 | 181 | rsps.add( | |
| 180 | - method=responses.DELETE, url=pattern, status=204, | ||
| 182 | + method=responses.DELETE, | ||
| 183 | + url=pattern, | ||
| 184 | + status=204, | ||
| 181 | 185 | ) | |
| 182 | 186 | yield rsps | |
| 183 | 187 | ||
@@ -187,7 +191,9 @@ def resp_runner_verify(): | |||
| 187 | 191 | with responses.RequestsMock() as rsps: | |
| 188 | 192 | pattern = re.compile(r".*?/runners/verify") | |
| 189 | 193 | rsps.add( | |
| 190 | - method=responses.POST, url=pattern, status=200, | ||
| 194 | + method=responses.POST, | ||
| 195 | + url=pattern, | ||
| 196 | + status=200, | ||
| 191 | 197 | ) | |
| 192 | 198 | yield rsps | |
| 193 | 199 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -711,8 +711,14 @@ class ProjectDeployTokenManager(ListMixin, CreateMixin, DeleteMixin, RESTManager | |||
| 711 | 711 | _from_parent_attrs = {"project_id": "id"} | |
| 712 | 712 | _obj_cls = ProjectDeployToken | |
| 713 | 713 | _create_attrs = ( | |
| 714 | - ("name", "scopes",), | ||
| 715 | - ("expires_at", "username",), | ||
| 714 | + ( | ||
| 715 | + "name", | ||
| 716 | + "scopes", | ||
| 717 | + ), | ||
| 718 | + ( | ||
| 719 | + "expires_at", | ||
| 720 | + "username", | ||
| 721 | + ), | ||
| 716 | 722 | ) | |
| 717 | 723 | ||
| 718 | 724 | ||
@@ -725,8 +731,14 @@ class GroupDeployTokenManager(ListMixin, CreateMixin, DeleteMixin, RESTManager): | |||
| 725 | 731 | _from_parent_attrs = {"group_id": "id"} | |
| 726 | 732 | _obj_cls = GroupDeployToken | |
| 727 | 733 | _create_attrs = ( | |
| 728 | - ("name", "scopes",), | ||
| 729 | - ("expires_at", "username",), | ||
| 734 | + ( | ||
| 735 | + "name", | ||
| 736 | + "scopes", | ||
| 737 | + ), | ||
| 738 | + ( | ||
| 739 | + "expires_at", | ||
| 740 | + "username", | ||
| 741 | + ), | ||
| 730 | 742 | ) | |
| 731 | 743 | ||
| 732 | 744 | ||
@@ -4181,7 +4193,11 @@ class ProjectServiceManager(GetMixin, UpdateMixin, DeleteMixin, ListMixin, RESTM | |||
| 4181 | 4193 | ), | |
| 4182 | 4194 | ), | |
| 4183 | 4195 | "jira": ( | |
| 4184 | - ("url", "username", "password",), | ||
| 4196 | + ( | ||
| 4197 | + "url", | ||
| 4198 | + "username", | ||
| 4199 | + "password", | ||
| 4200 | + ), | ||
| 4185 | 4201 | ( | |
| 4186 | 4202 | "api_url", | |
| 4187 | 4203 | "active", | |
| Back | FazBrowse Home | New Git URL |
0 commit comments