diff options
author | Jeremy Bettis <jbettis@google.com> | 2022-07-08 14:22:19 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-07-13 17:06:03 +0000 |
commit | 331ea002e16c1209e1eddf57c01400b7ff4ac02e (patch) | |
tree | 0dc3933e35417500dc9b92cfc722058df17f859e /util/ec3po/console_unittest.py | |
parent | b330c438eed93c2dddecfe767a1bacfca4883227 (diff) | |
download | chrome-ec-331ea002e16c1209e1eddf57c01400b7ff4ac02e.tar.gz |
ec: Fix some bad formatting and warnings
The black formatting revealed some odd formatting.
Fixed all errors from cros lint.
find . \( -path ./private -prune \) -o -name '*.py' -print | \
xargs cros lint -v |& grep ": E"
BRANCH=None
BUG=b:238434058
TEST=None
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Change-Id: Ia1d2e9cfb0cd2b7000d15b3b918d24881987673e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3749249
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'util/ec3po/console_unittest.py')
-rwxr-xr-x | util/ec3po/console_unittest.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/util/ec3po/console_unittest.py b/util/ec3po/console_unittest.py index 41ae324ef4..45ab2ff44c 100755 --- a/util/ec3po/console_unittest.py +++ b/util/ec3po/console_unittest.py @@ -14,7 +14,7 @@ import logging import tempfile import unittest -import mock +import mock # pylint:disable=import-error import six from ec3po import console, interpreter, threadproc_shim @@ -188,7 +188,7 @@ class TestConsoleEditingMethods(unittest.TestCase): # Setup logging with a timestamp, the module, and the log level. logging.basicConfig( level=logging.DEBUG, - format=("%(asctime)s - %(module)s -" " %(levelname)s - %(message)s"), + format=("%(asctime)s - %(module)s - %(levelname)s - %(message)s"), ) # Create a temp file and set both the controller and peripheral PTYs to the @@ -1101,7 +1101,7 @@ class TestConsoleCompatibility(unittest.TestCase): # Setup logging with a timestamp, the module, and the log level. logging.basicConfig( level=logging.DEBUG, - format=("%(asctime)s - %(module)s -" " %(levelname)s - %(message)s"), + format=("%(asctime)s - %(module)s - %(levelname)s - %(message)s"), ) # Create a temp file and set both the controller and peripheral PTYs to the # file to create a loopback. @@ -1207,7 +1207,7 @@ class TestConsoleCompatibility(unittest.TestCase): # At this point, we should have negotiated to enhanced. self.assertTrue( - self.console.enhanced_ec, msg=("Did not negotiate to " "enhanced EC image.") + self.console.enhanced_ec, msg=("Did not negotiate to enhanced EC image.") ) # The command would have been dropped however, so verify this... @@ -1259,7 +1259,7 @@ class TestConsoleCompatibility(unittest.TestCase): # Verify this. self.assertFalse( self.console.enhanced_ec, - msg=("Did not negotiate to" "non-enhanced EC image."), + msg=("Did not negotiate to non-enhanced EC image."), ) CheckInputBuffer(self, b"") CheckInputBufferPosition(self, 0) @@ -1398,7 +1398,7 @@ class TestOOBMConsoleCommands(unittest.TestCase): # Setup logging with a timestamp, the module, and the log level. logging.basicConfig( level=logging.DEBUG, - format=("%(asctime)s - %(module)s -" " %(levelname)s - %(message)s"), + format=("%(asctime)s - %(module)s - %(levelname)s - %(message)s"), ) # Create a temp file and set both the controller and peripheral PTYs to the # file to create a loopback. @@ -1470,7 +1470,7 @@ class TestOOBMConsoleCommands(unittest.TestCase): # The EC image should be assumed to be not enhanced. self.assertFalse( self.console.enhanced_ec, - "The image should be assumed to" " be NOT enhanced.", + "The image should be assumed to be NOT enhanced.", ) # Reset the mocks. @@ -1520,7 +1520,7 @@ class TestOOBMConsoleCommands(unittest.TestCase): # The EC image should be assumed to be not enhanced. self.assertFalse( self.console.enhanced_ec, - "The image should be assumed to" " be NOT enhanced.", + "The image should be assumed to be NOT enhanced.", ) # Reset the mocks. @@ -1575,7 +1575,7 @@ class TestOOBMConsoleCommands(unittest.TestCase): # The EC image should be assumed to be not enhanced. self.assertFalse( self.console.enhanced_ec, - "The image should be assumed to" " be NOT enhanced.", + "The image should be assumed to be NOT enhanced.", ) # Now, let's try to assume that the image is enhanced while still disabling @@ -1623,7 +1623,7 @@ class TestOOBMConsoleCommands(unittest.TestCase): # The EC image should be assumed to be enhanced. self.assertTrue( - self.console.enhanced_ec, "The image should be" " assumed to be enhanced." + self.console.enhanced_ec, "The image should be assumed to be enhanced." ) |