You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
depot_tools/tests
Robert Iannucci a3fb9bad66 [scm] Mock global git config scope globally.
This will be useful for writing tests which rely on shared 'global'
config between different working directories.

This also adds support for mocking 'system' (global, immutable) and
'workspace' (local, mutable). The workspace scope I think is a bit iffy
though, given how `git cl` is actually built - currently scm.GIT doesn't
really know about clone vs. workspace, and afaik no config adjustements
actually apply to the workspace scope.

Adds tests for mocked git config implementation, including bug fixes
to the current implementation revealed by the tests.

R=ayatane, yiwzhang

Change-Id: Ia56d2a81d8df6ae75d9f8d0497be0d67bdc03651
Bug: 355505750
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5759163
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
Commit-Queue: Robbie Iannucci <iannucci@chromium.org>
12 months ago
..
gerrit_util_test.inputs [gerrit_util] Add some additional tests and fixes for SSOAuthenticator. 1 year ago
gstools Upload script for first class gcs deps 1 year ago
.vpython3 run tests using python 3.8 1 year ago
OWNERS autoninja: Implement build_telemetry utils 1 year ago
auth_test.py
autoninja_test.py autoninja: Replace ninjalog_uploader_wrapper.py and reclient_metrics.py with build_telemetry.py 1 year ago
bazel_test.py
bot_update_coverage_test.py
build_telemetry_test.py autoninja: Implement build_telemetry utils 1 year ago
cipd_bootstrap_test.py
detect_host_arch_test.py
download_from_google_storage_unittest.py Upload script for first class gcs deps 1 year ago
fetch_test.py
gclient_cipd_smoketest.py
gclient_eval_unittest.py run tests using python 3.8 1 year ago
gclient_gcs_smoketest.py Make the downloaded tarfile a dotfile 1 year ago
gclient_git_mutates_smoketest.py
gclient_git_smoketest.py
gclient_no_sync_smoketest.py
gclient_paths_test.py
gclient_scm_test.py [scm] Refactor git config state to be fully mock-able. 1 year ago
gclient_smoketest.py
gclient_smoketest_base.py
gclient_test.py
gclient_transitions_smoketest.py
gclient_utils_test.py [gclient] Use lowercase and when merging conditions 1 year ago
gerrit_client_test.py [gerrit_client] Fix test to not hit real gerrit service. 1 year ago
gerrit_util_test.py [git_cl] Default to SSO with missing email 1 year ago
git_auth_test.py [git_auth] Add git_auth tests 1 year ago
git_cache_test.py [git_cache] support ssh url 1 year ago
git_cl_creds_check_report.txt
git_cl_test.py Skip tests not supported in non-git env if in non-git env 1 year ago
git_common_test.py [depot_tools] retry git config if it lock-fails 1 year ago
git_dates_test.py
git_find_releases_test.py Skip tests not supported in non-git env if in non-git env 1 year ago
git_footers_test.py Skip tests not supported in non-git env if in non-git env 1 year ago
git_hyper_blame_test.py
git_map_test.py
git_number_test.py
git_rebase_update_test.py
git_squash_branch_tree_test.py Add git squash-branch-tree 1 year ago
gn_helper_test.py gn_helper: ignore spaces on gn lines 1 year ago
gsutil_test.py
hooks_test.py
lockfile_test.py [gsutil] Fix race when downloading gsutil 1 year ago
metrics_test.py Use $HOME/.config/depot_tools on linux for .cfg files 1 year ago
my_activity_test.py
ninjalog_uploader_test.py autoninja: Replace ninjalog_uploader_wrapper.py and reclient_metrics.py with build_telemetry.py 1 year ago
owners_client_test.py
owners_finder_test.py
presubmit_canned_checks_test.py Reland "[presubmit checks] Check if files are written to a dep dir" 1 year ago
presubmit_diff_test.py run tests using python 3.8 1 year ago
presubmit_support_test.py Handle empty diff in _diffs_to_change_files 1 year ago
presubmit_unittest.py Create scm.DIFF.GetAllFiles 1 year ago
rdb_wrapper_test.py
recipes_test.py
reclient_helper_test.py autoninja: Use AUTONINJA_BUILD_ID for RBE_invocation_id as is. 1 year ago
roll_dep_test.py Hide git log by default if rolling from a non-public host 1 year ago
scm_mock.py [scm] Mock global git config scope globally. 12 months ago
scm_unittest.py [scm] Mock global git config scope globally. 12 months ago
split_cl_test.py split_cl: do not prepend '/' in $directory 1 year ago
subcommand_test.py
subprocess2_test.py
upload_to_google_storage_first_class_unittest.py Add generation version number to GCS first-class entries. 1 year ago
upload_to_google_storage_unittest.py
utils_test.py Use $HOME/.config/depot_tools on linux for .cfg files 1 year ago
watchlists_unittest.py