Esempio n. 1
0
    def test_gitcheck(self):
        os.chdir(GITROOT)

        defaulttheme = ""
        gitcheck.colortheme = {
            'default': defaulttheme,
            'prjchanged': defaulttheme,
            'prjremote': defaulttheme,
            'prjname': defaulttheme,
            'reponame': defaulttheme,
            'branchname': defaulttheme,
            'fileupdated': defaulttheme,
            'remoteto': defaulttheme,
            'committo': defaulttheme,
            'commitinfo': defaulttheme,
            'commitstate': defaulttheme,
            'bell': defaulttheme,
            'reset': defaulttheme,
        }

        gitcheck.gitcheck()

        output = sys.stdout.getvalue().strip()
        lines = output.split('\n')

        self.assertEqual(lines[0], 'fabrecipes/master ')
        self.assertEqual(lines[1], 'gitcheck/master ')
        self.assertEqual(lines[2], 'serialkiller/master')
Esempio n. 2
0
    def test_gitcheck(self):
        os.chdir(GITROOT)

        defaulttheme = ""
        gitcheck.colortheme = {
            'default': defaulttheme,
            'prjchanged': defaulttheme,
            'prjremote': defaulttheme,
            'prjname': defaulttheme,
            'reponame': defaulttheme,
            'branchname': defaulttheme,
            'fileupdated': defaulttheme,
            'remoteto': defaulttheme,
            'committo': defaulttheme,
            'commitinfo': defaulttheme,
            'commitstate': defaulttheme,
            'bell': defaulttheme,
            'reset': defaulttheme,
        }

        gitcheck.gitcheck()

        output = sys.stdout.getvalue().strip()
        lines = output.split('\n')

        self.assertEqual(lines[0], 'fabrecipes/master ')
        self.assertEqual(lines[1], 'gitcheck/master ')
        self.assertEqual(lines[2], 'serialkiller/master')
Esempio n. 3
0
    def test_gitcheck(self):
        os.chdir(GITROOT)

        gitcheck.tcolor.DEFAULT = ""
        gitcheck.tcolor.BOLD = ""
        gitcheck.tcolor.RED = ""
        gitcheck.tcolor.GREEN = ""
        gitcheck.tcolor.BLUE = ""
        gitcheck.tcolor.ORANGE = ""
        gitcheck.tcolor.MAGENTA = ""
        gitcheck.tcolor.RESET = ""

        gitcheck.gitcheck()

        output = sys.stdout.getvalue().strip()
        lines = output.split('\n')

        self.assertEqual(lines[0], 'fabrecipes/master ')
        self.assertEqual(lines[1], 'gitcheck/master ')
        self.assertEqual(lines[2], 'serialkiller/master')