git-repo/tests
Mike Frysinger 71b0f312b1 git_command: refactor User-Agent settings
Convert the RepoUserAgent function into a UserAgent class.  This
makes it cleaner to hold internal state, and will make it easier
to add a separate git User-Agent, although we don't do it here.

We make the RepoSourceVersion independent of GitCommand so that
it can be called by the class (later).

Bug: https://crbug.com/gerrit/11144
Change-Id: Iab4e1f974b8733a36b243b2d03f5085a96effa19
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/239232
Reviewed-by: David Pursehouse <dpursehouse@collab.net>
Tested-by: Mike Frysinger <vapier@google.com>
2019-10-01 05:40:28 +00:00
..
fixtures run_tests: add a helper for invoking unittests 2019-07-11 04:34:08 +00:00
test_git_command.py git_command: refactor User-Agent settings 2019-10-01 05:40:28 +00:00
test_git_config.py tests: add docstrings & print_function (for Python 3) 2019-08-01 03:03:48 +00:00
test_project.py tests: add docstrings & print_function (for Python 3) 2019-08-01 03:03:48 +00:00
test_wrapper.py tests: add docstrings & print_function (for Python 3) 2019-08-01 03:03:48 +00:00