summaryrefslogtreecommitdiff
path: root/gitlab/tests
diff options
context:
space:
mode:
authorNejc Habjan <nejc.habjan@siemens.com>2020-08-28 21:40:04 +0200
committerNejc Habjan <nejc.habjan@siemens.com>2020-08-29 01:09:14 +0200
commitd2997530bc3355048143bc29580ef32fc21dac3d (patch)
treef715fa1b18a36e0833a8098ffdd4e075071e6d82 /gitlab/tests
parenta038e9567fd16259e3ed360ab0defd779e9c3901 (diff)
downloadgitlab-d2997530bc3355048143bc29580ef32fc21dac3d.tar.gz
chore: make latest black happy with existing code
Diffstat (limited to 'gitlab/tests')
-rw-r--r--gitlab/tests/objects/test_commits.py8
-rw-r--r--gitlab/tests/objects/test_runners.py12
2 files changed, 16 insertions, 4 deletions
diff --git a/gitlab/tests/objects/test_commits.py b/gitlab/tests/objects/test_commits.py
index 9d11508..6b98117 100644
--- a/gitlab/tests/objects/test_commits.py
+++ b/gitlab/tests/objects/test_commits.py
@@ -88,7 +88,13 @@ def test_create_commit(project, resp_create_commit):
data = {
"branch": "master",
"commit_message": "Commit message",
- "actions": [{"action": "create", "file_path": "README", "content": "",}],
+ "actions": [
+ {
+ "action": "create",
+ "file_path": "README",
+ "content": "",
+ }
+ ],
}
commit = project.commits.create(data)
assert commit.short_id == "ed899a2f"
diff --git a/gitlab/tests/objects/test_runners.py b/gitlab/tests/objects/test_runners.py
index 490ba36..30fdb41 100644
--- a/gitlab/tests/objects/test_runners.py
+++ b/gitlab/tests/objects/test_runners.py
@@ -167,7 +167,9 @@ def resp_runner_delete():
status=200,
)
rsps.add(
- method=responses.DELETE, url=pattern, status=204,
+ method=responses.DELETE,
+ url=pattern,
+ status=204,
)
yield rsps
@@ -177,7 +179,9 @@ def resp_runner_disable():
with responses.RequestsMock() as rsps:
pattern = re.compile(r".*?/(groups|projects)/1/runners/6")
rsps.add(
- method=responses.DELETE, url=pattern, status=204,
+ method=responses.DELETE,
+ url=pattern,
+ status=204,
)
yield rsps
@@ -187,7 +191,9 @@ def resp_runner_verify():
with responses.RequestsMock() as rsps:
pattern = re.compile(r".*?/runners/verify")
rsps.add(
- method=responses.POST, url=pattern, status=200,
+ method=responses.POST,
+ url=pattern,
+ status=200,
)
yield rsps