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/cros_unittest.py b/scripts/cros_unittest.py
index 91e6c1e..f7e8c7b 100644
--- a/scripts/cros_unittest.py
+++ b/scripts/cros_unittest.py
@@ -10,20 +10,23 @@
class RunScriptTest(cros_test_lib.MockTempDirTestCase):
- """Test the main functionality."""
+ """Test the main functionality."""
- def setUp(self):
- self.PatchObject(cros, '_RunSubCommand', autospec=True)
+ def setUp(self):
+ self.PatchObject(cros, "_RunSubCommand", autospec=True)
- def testDefaultLogLevel(self):
- """Test that the default log level is set to notice."""
- arg_parser = self.PatchObject(commandline, 'ArgumentParser',
- return_value=commandline.ArgumentParser())
- cros.GetOptions()
- arg_parser.assert_called_with(caching=True, default_log_level='notice')
+ def testDefaultLogLevel(self):
+ """Test that the default log level is set to notice."""
+ arg_parser = self.PatchObject(
+ commandline,
+ "ArgumentParser",
+ return_value=commandline.ArgumentParser(),
+ )
+ cros.GetOptions()
+ arg_parser.assert_called_with(caching=True, default_log_level="notice")
- def testSubcommand(self):
- """Test parser when given a subcommand."""
- parser = cros.GetOptions('lint')
- opts = parser.parse_args(['lint'])
- self.assertEqual(opts.subcommand, 'lint')
+ def testSubcommand(self):
+ """Test parser when given a subcommand."""
+ parser = cros.GetOptions("lint")
+ opts = parser.parse_args(["lint"])
+ self.assertEqual(opts.subcommand, "lint")