PRESUBMIT.py 443 B

12345678910111213
  1. #!/usr/bin/env vpython3
  2. # Copyright (c) 2023 The Chromium Authors. All rights reserved.
  3. # Use of this source code is governed by a BSD-style license that can be
  4. # found in the LICENSE file.
  5. PRESUBMIT_VERSION = '2.0.0'
  6. def CheckPythonUnitTests(input_api, output_api):
  7. tests = input_api.canned_checks.GetUnitTestsInDirectory(
  8. input_api, output_api, "tests", files_to_check=[r'.+_test\.py$'])
  9. return input_api.RunTests(tests)