Formatting: Format all python code with black.
This CL is probably not what you're looking for, it's only
automated formatting. Ignore it with
`git blame --ignore-rev <revision>` for this commit.
BUG=b:233893248
TEST=CQ
Change-Id: I66591d7a738d241aed3290138c0f68065ab10a6d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/3879174
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Tested-by: Alex Klein <saklein@chromium.org>
diff --git a/scripts/build_api_unittest.py b/scripts/build_api_unittest.py
index eca6f6e..661fba0 100644
--- a/scripts/build_api_unittest.py
+++ b/scripts/build_api_unittest.py
@@ -12,22 +12,24 @@
def testSmoke(tmp_path, monkeypatch):
- """Basic confidence check"""
+ """Basic confidence check"""
- def stub(*_args, **_kwargs):
- return True
+ def stub(*_args, **_kwargs):
+ return True
- monkeypatch.setattr(router_lib.Router, 'Route', stub)
+ monkeypatch.setattr(router_lib.Router, "Route", stub)
- input_json = tmp_path / 'input.json'
- output_json = tmp_path / 'output.json'
+ input_json = tmp_path / "input.json"
+ output_json = tmp_path / "output.json"
- osutils.WriteFile(input_json, '{}')
+ osutils.WriteFile(input_json, "{}")
- build_api.main([
- '--input-json',
- str(input_json),
- '--output-json',
- str(output_json),
- 'chromite.api.VersionService/Get',
- ])
+ build_api.main(
+ [
+ "--input-json",
+ str(input_json),
+ "--output-json",
+ str(output_json),
+ "chromite.api.VersionService/Get",
+ ]
+ )