File: test_gitAliasTest.py

package info (click to toggle)
azure-devops-cli-extension 1.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 22,680 kB
  • sloc: python: 160,797; xml: 198; sh: 61; makefile: 56
file content (12 lines) | stat: -rw-r--r-- 692 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
import subprocess
from .utilities.helper import DevopsScenarioTest

class TestGitAliasing(DevopsScenarioTest):
    def test_git_aliases_pr_repo(self):
        self.cmd('az devops configure --use-git-aliases')
        repo_help = subprocess.check_output('git repo -h', shell=True)
        pr_help = subprocess.check_output('git pr -h', shell=True)