def test_getCurrentBranch(self):
        lazylibrarian.INSTALL_TYPE = 'git'

        # doesn't work as tests are in unittest directory. so it doesn't pick up the root install dir
        lazylibrarian.PROG_DIR = os.path.dirname(os.path.abspath(__file__))
        result = versioncheck.getCurrentGitBranch()
        self.assertEquals("master", result)
Esempio n. 2
0
    def test_getCurrentBranch(self):
        lazylibrarian.CONFIG['INSTALL_TYPE'] = 'git'

        # doesn't work as tests are in unittest directory. so it doesn't pick up the root install dir
        lazylibrarian.PROG_DIR = os.path.dirname(os.path.abspath(__file__))
        result = versioncheck.getCurrentGitBranch()
        self.assertEquals("master", result)
 def test_getCurrentBranchForNonGITInstalls(self):
     lazylibrarian.INSTALL_TYPE = 'win'
     result = versioncheck.getCurrentGitBranch()
     self.assertEquals("NON GIT INSTALL", result)
Esempio n. 4
0
 def test_getCurrentBranchForNonGITInstalls(self):
     lazylibrarian.CONFIG['INSTALL_TYPE'] = 'win'
     result = versioncheck.getCurrentGitBranch()
     self.assertEquals("NON GIT INSTALL", result)