Exemplo n.º 1
0
 def test_get_manifest_current(self):
     # this test obviously returns different results over time
     distro = None
     # rviz
     result = locate.get_manifest('rviz', distro)
     self.assertEqual('package', result[1], result)
     # rospack
     (data, type_, url) = locate.get_manifest('rospack', distro)
     self.assertEqual('package', type_)
     data = locate._get_rosinstall_dict('rospack', data, type_)
     self.assertEqual('https://github.com/ros/rospack.git', data.get('git', {}).get('uri', ''))
     # ros_comm
     (data, type_, url) = locate.get_manifest('ros_comm', distro)
     self.assertEqual('metapackage', type_)
     data = locate._get_rosinstall_dict('ros_comm', data, type_)
     self.assertEqual('https://github.com/ros/ros_comm.git', data.get('git', {}).get('uri', ''))
Exemplo n.º 2
0
 def test_get_manifest_current(self):
     # this test obviously returns different results over time
     distro = None
     # rviz
     result = locate.get_manifest('rviz', distro)
     self.assertEqual('package', result[1], result)
     # rospack
     (data, type_, url) = locate.get_manifest('rospack', distro)
     self.assertEqual('package', type_)
     data = locate._get_rosinstall_dict('rospack', data, type_)
     self.assertEqual('https://github.com/ros/rospack.git', data.get('git', {}).get('uri', ''))
     # ros_comm
     (data, type_, url) = locate.get_manifest('ros_comm', distro)
     self.assertEqual('metapackage', type_)
     data = locate._get_rosinstall_dict('ros_comm', data, type_)
     self.assertEqual('https://github.com/ros/ros_comm.git', data.get('git', {}).get('uri', ''))
Exemplo n.º 3
0
 def test_get_manifest_groovy(self):
     distro = 'groovy'
     # rviz
     result = locate.get_manifest('rviz', distro)
     self.assertEqual('package', result[1], result)
     # rospack
     (data, type_, url) = locate.get_manifest('rospack', distro)
     self.assertEqual('package', type_)
     data = locate._get_rosinstall_dict('rospack', data, type_)
     self.assertEqual('https://github.com/ros/rospack.git', data.get('git', {}).get('uri', ''))
     self.assertTrue(distro in data.get('git', {}).get('version', ''), data)
     # ros_comm
     (data, type_, url) = locate.get_manifest('ros_comm', distro)
     self.assertEqual('metapackage', type_)
     data = locate._get_rosinstall_dict('ros_comm', data, type_)
     self.assertEqual('https://github.com/ros/ros_comm.git', data.get('git', {}).get('uri', ''))
     self.assertTrue(distro in data.get('git', {}).get('version', ''), data)
Exemplo n.º 4
0
 def test_get_manifest_lunar(self):
     distro = 'lunar'
     # rviz
     result = locate.get_manifest('rviz', distro)
     self.assertEqual('package', result[1], result)
     # rospack
     (data, type_, url) = locate.get_manifest('rospack', distro)
     self.assertEqual('package', type_)
     data = locate._get_rosinstall_dict('rospack', data, type_)
     self.assertEqual('https://github.com/ros/rospack.git', data.get('git', {}).get('uri', ''))
     self.assertTrue(distro in data.get('git', {}).get('version', ''), data)
     # ros_comm
     (data, type_, url) = locate.get_manifest('ros_comm', distro)
     self.assertEqual('metapackage', type_)
     data = locate._get_rosinstall_dict('ros_comm', data, type_)
     self.assertEqual('https://github.com/ros/ros_comm.git', data.get('git', {}).get('uri', ''))
     self.assertTrue(distro in data.get('git', {}).get('version', ''), data)