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>
1 year ago
..
gerrit_util_test.inputs
gstools
.vpython3
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
fetch_test.py
gclient_cipd_smoketest.py
gclient_eval_unittest.py
gclient_gcs_smoketest.py
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
gerrit_client_test.py
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_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 2 years ago
gn_helper_test.py gn_helper: ignore spaces on gn lines 2 years ago
gsutil_test.py
hooks_test.py
lockfile_test.py
metrics_test.py
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
presubmit_diff_test.py
presubmit_support_test.py
presubmit_unittest.py
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
scm_mock.py [scm] Mock global git config scope globally. 1 year ago
scm_unittest.py [scm] Mock global git config scope globally. 1 year ago
split_cl_test.py
subcommand_test.py
subprocess2_test.py
upload_to_google_storage_first_class_unittest.py
upload_to_google_storage_unittest.py
utils_test.py
watchlists_unittest.py