Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Side by Side Diff: tests/presubmit_unittest.py

Issue 2046003002: [depot_tools] Add gendered pronoun presubmit check. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: test Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « presubmit_canned_checks.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Unit tests for presubmit_support.py and presubmit_canned_checks.py.""" 6 """Unit tests for presubmit_support.py and presubmit_canned_checks.py."""
7 7
8 # pylint: disable=E1101,E1103 8 # pylint: disable=E1101,E1103
9 9
10 import StringIO 10 import StringIO
(...skipping 1858 matching lines...) Expand 10 before | Expand all | Expand 10 after
1869 'CheckChangeHasOnlyOneEol', 'CheckChangeHasNoCR', 1869 'CheckChangeHasOnlyOneEol', 'CheckChangeHasNoCR',
1870 'CheckChangeHasNoCrAndHasOnlyOneEol', 'CheckChangeHasNoTabs', 1870 'CheckChangeHasNoCrAndHasOnlyOneEol', 'CheckChangeHasNoTabs',
1871 'CheckChangeTodoHasOwner', 1871 'CheckChangeTodoHasOwner',
1872 'CheckChangeHasQaField', 'CheckChangeHasTestedField', 1872 'CheckChangeHasQaField', 'CheckChangeHasTestedField',
1873 'CheckChangeHasTestField', 1873 'CheckChangeHasTestField',
1874 'CheckChangeLintsClean', 1874 'CheckChangeLintsClean',
1875 'CheckChangeSvnEolStyle', 1875 'CheckChangeSvnEolStyle',
1876 'CheckChangeWasUploaded', 1876 'CheckChangeWasUploaded',
1877 'CheckDoNotSubmit', 1877 'CheckDoNotSubmit',
1878 'CheckDoNotSubmitInDescription', 'CheckDoNotSubmitInFiles', 1878 'CheckDoNotSubmitInDescription', 'CheckDoNotSubmitInFiles',
1879 'CheckGenderNeutral',
1879 'CheckLongLines', 'CheckTreeIsOpen', 'PanProjectChecks', 1880 'CheckLongLines', 'CheckTreeIsOpen', 'PanProjectChecks',
1880 'CheckLicense', 1881 'CheckLicense',
1881 'CheckOwners', 1882 'CheckOwners',
1882 'CheckPatchFormatted', 1883 'CheckPatchFormatted',
1883 'CheckGNFormatted', 1884 'CheckGNFormatted',
1884 'CheckRietveldTryJobExecution', 1885 'CheckRietveldTryJobExecution',
1885 'CheckSingletonInHeaders', 1886 'CheckSingletonInHeaders',
1886 'CheckSvnForCommonMimeTypes', 'CheckSvnProperty', 1887 'CheckSvnForCommonMimeTypes', 'CheckSvnProperty',
1887 'RunPythonUnitTests', 'RunPylint', 1888 'RunPythonUnitTests', 'RunPylint',
1888 'RunUnitTests', 'RunUnitTestsInDirectory', 1889 'RunUnitTests', 'RunUnitTestsInDirectory',
(...skipping 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after
2922 owners_check=False) 2923 owners_check=False)
2923 self.assertEqual(2, len(results)) 2924 self.assertEqual(2, len(results))
2924 self.assertEqual( 2925 self.assertEqual(
2925 'Found line ending with white spaces in:', results[0]._message) 2926 'Found line ending with white spaces in:', results[0]._message)
2926 self.checkstdout('') 2927 self.checkstdout('')
2927 2928
2928 2929
2929 if __name__ == '__main__': 2930 if __name__ == '__main__':
2930 import unittest 2931 import unittest
2931 unittest.main() 2932 unittest.main()
OLDNEW
« no previous file with comments | « presubmit_canned_checks.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698