Coverage for lbCVMFSTools/TaskHandlers/GitMirrorTask/tests/TestGitMirror.py : 91%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
############################################################################### # (c) Copyright 2016 CERN # # # # This software is distributed under the terms of the GNU General Public # # Licence version 3 (GPL Version 3), copied verbatim in the file "COPYING". # # # # In applying this licence, CERN does not waive the privileges and immunities # # granted to it by virtue of its status as an Intergovernmental Organization # # or submit itself to any jurisdiction. # ############################################################################### Test of the version path manager functionality in the model classes.
@author: Stefan-Gabriel CHITIC '''
import GitMirrorTask
shutil.rmtree("/tmp/toto") shutil.rmtree("/tmp/foo/") "/tmp/toto/cvmfstest.cern.ch/test1.git/FETCH_HEAD", 'w') as f: "/tmp/toto/cvmfstest.cern.ch/test2.git/FETCH_HEAD", 'w') as f: "/tmp/toto/cvmfstest.cern.ch/test3.git/FETCH_HEAD", 'w') as f: repodir='/tmp/toto/cvmfstest.cern.ch/')
'/tmp/toto/cvmfstest.cern.ch/test3.git/FETCH_HEAD')
# Test with all slots not install {'md5': 'e7df7cd2ca07f4f1ab415d457a6e1c13', 'path': '/tmp/toto/cvmfstest.cern.ch/test1.git'}, {'md5': 'e7df7cd2ca07f4f1ab415d457a6e1c13', 'path': '/tmp/toto/cvmfstest.cern.ch/test2.git'}, {'md5': 'e7df7cd2ca07f4f1ab415d457a6e1c13', 'path': '/tmp/toto/cvmfstest.cern.ch/test3.git'} ]]
# Test with all slots not install self.fail("Should returned with transaction abort")
"/tmp/toto/cvmfstest.cern.ch/test3.git/FETCH_HEAD", 'w') as f: except Exception as e: self.fail("Should publish the transaction %s " % str(e))
unittest.main() |