summaryrefslogtreecommitdiffstats
path: root/tests/test_update_manpages.py
diff options
context:
space:
mode:
authorGavin Mak <gavinmak@google.com>2023-03-11 06:46:20 +0000
committerLUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-03-22 17:46:28 +0000
commitea2e330e43c182dc16b0111ebc69ee5a71ee4ce1 (patch)
treedc33ba0e56825b3e007d0589891756724725a465 /tests/test_update_manpages.py
parent1604cf255f8c1786a23388db6d5277ac7949a24a (diff)
downloadgit-repo-ea2e330e43c182dc16b0111ebc69ee5a71ee4ce1.tar.gz
Format codebase with black and check formatting in CQ
Apply rules set by https://gerrit-review.googlesource.com/c/git-repo/+/362954/ across the codebase and fix any lingering errors caught by flake8. Also check black formatting in run_tests (and CQ). Bug: b/267675342 Change-Id: I972d77649dac351150dcfeb1cd1ad0ea2efc1956 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/363474 Reviewed-by: Mike Frysinger <vapier@google.com> Tested-by: Gavin Mak <gavinmak@google.com> Commit-Queue: Gavin Mak <gavinmak@google.com>
Diffstat (limited to 'tests/test_update_manpages.py')
-rw-r--r--tests/test_update_manpages.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_update_manpages.py b/tests/test_update_manpages.py
index 0de85be9..12b19ec4 100644
--- a/tests/test_update_manpages.py
+++ b/tests/test_update_manpages.py
@@ -20,9 +20,9 @@ from release import update_manpages
20 20
21 21
22class UpdateManpagesTest(unittest.TestCase): 22class UpdateManpagesTest(unittest.TestCase):
23 """Tests the update-manpages code.""" 23 """Tests the update-manpages code."""
24 24
25 def test_replace_regex(self): 25 def test_replace_regex(self):
26 """Check that replace_regex works.""" 26 """Check that replace_regex works."""
27 data = '\n\033[1mSummary\033[m\n' 27 data = "\n\033[1mSummary\033[m\n"
28 self.assertEqual(update_manpages.replace_regex(data),'\nSummary\n') 28 self.assertEqual(update_manpages.replace_regex(data), "\nSummary\n")