commit | 238eb415da7e5c5fdedcca592467718c58e6ffb2 | [log] [tgz] |
---|---|---|
author | Struan Shrimpton <sshrimp@google.com> | Thu Jun 15 19:57:24 2023 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Jun 15 19:57:24 2023 |
tree | a0753a1d67b51ec655804367bcae27df7d0a1d87 | |
parent | e35e828148d1621f67ae94d01cada8e3f7fe54f8 [diff] |
[test-resources] Create a default unknown MetricType Bug: 1435578 Change-Id: Ic6126c4f4c8bcbbda66e7177038b5c00f5dff30e Reviewed-on: https://chromium-review.googlesource.com/c/infra/infra/+/4615425 Reviewed-by: Riley Wong <rgw@google.com> Commit-Queue: Struan Shrimpton <sshrimp@google.com> Cr-Commit-Position: refs/heads/main@{#57477}
Welcome to the Chrome Infra repository!
Wondering where to start? Check out General Chrome Infrastructure documentation. In particular, to check out this repo and the rest of the infrastructure code, follow the instructions here. The rest of this page is specific to this repo.
sys.path
modifications.git push origin <updated hash>:deployed
git push
commandIf you've added a new module, run your tests with test.py:
*_test.py
files to this directory.Double-check that your tests are getting picked up when you want them to be: ./test.py test <path-to-package>
.
Tests still not getting picked up by test.py? Double-check to make sure you have __init__.py
files in each directory of your module so Python recognizes it as a package.
The preferred style is PEP8 with two-space indent; that is, the Chromium Python style, except functions use lowercase_with_underscores
. Use yapf (git cl format
) to autoformat new code.