Skip to content

Commit

Permalink
#1: added an entry to self.mock_pti.get_gcmd_platform_list
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenwh committed Feb 1, 2019
1 parent ff12aec commit 61ae0ec
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion geospaas/vocabularies/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ class BaseForVocabulariesTests(TestCase):
def setUp(self):
self.patcher = patch('geospaas.vocabularies.managers.pti')
self.mock_pti = self.patcher.start()
self.mock_pti.get_gcmd_platform_list.return_value = [{'Category': 'Aircraft','Series_Entity': '','Short_Name': 'A340-600','Long_Name': 'Airbus A340-600'}]
self.mock_pti.get_gcmd_platform_list.return_value = [
{'Category': 'Aircraft', 'Series_Entity': '', 'Short_Name': 'A340-600', 'Long_Name':
'Airbus A340-600'},
{'Category': 'Space Stations/Manned Spacecraft', 'Series_Entity': '', 'Short_Name':
'', 'Long_Name': ''},
]
self.mock_pti.get_gcmd_provider_list.return_value = [{'Bucket_Level0': 'ACADEMIC', 'Bucket_Level1': 'OR-STATE/EOARC', 'Bucket_Level2': '', 'Bucket_Level3': '', 'Short_Name': 'OR-STATE/EOARC', 'Long_Name': 'Eastern Oregon Agriculture Research Center, Oregon State University', 'Data_Center_URL': 'http://oregonstate.edu/dept/eoarcunion/'}]
self.mock_pti.get_wkv_variable_list.return_value = [{'standard_name': 'surface_radial_doppler_sea_water_velocity', 'long_name': 'Radial Doppler Current', 'short_name': 'Ur', 'units': 'm s-1', 'minmax': '-1 1', 'colormap': 'jet'}]
self.mock_pti.get_gcmd_instrument_list.return_value = [{'Category': 'Earth Remote Sensing Instruments', 'Class': 'Active Remote Sensing', 'Type': 'Altimeters', 'Subtype': 'Lidar/Laser Altimeters', 'Short_Name': 'AIRBORNE LASER SCANNER', 'Long_Name': ''}]
Expand Down

0 comments on commit 61ae0ec

Please sign in to comment.