parse_repos_test.py
Go to the documentation of this file.
00001 from git import Repo
00002 import shutil
00003 import tempfile
00004 from ros_introspection.util import get_packages
00005 
00006 
00007 def single_repo_parse(git_url):
00008     directory_name = tempfile.mkdtemp()
00009 
00010     Repo.clone_from(git_url, directory_name)
00011 
00012     for package in get_packages(directory_name):
00013         print(package)
00014 
00015     shutil.rmtree(directory_name)
00016 
00017 
00018 repos = ['https://github.com/DLu/navigation_layers.git',
00019          'https://github.com/ros-planning/navigation.git'
00020          ]
00021 
00022 
00023 def test_generator():
00024     for repo in repos:
00025         yield single_repo_parse, repo
00026 
00027 
00028 if __name__ == '__main__':
00029     for repo in repos:
00030         single_repo_parse(repo)


ros_introspection
Author(s):
autogenerated on Wed Jun 19 2019 19:21:34