Skip to content

Commit

Permalink
Actualización de nombres en /search
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaslavandeira committed Aug 14, 2018
1 parent 79d4dec commit 7f2a8c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions series_tiempo_ar_api/apps/metadata/queries/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ def execute(self):
'id': getattr(hit, 'id', None),
'description': getattr(hit, 'description', None),
'title': getattr(hit, 'title', None),
'periodicity': getattr(hit, 'periodicity', None),
'start_date': start_date,
'end_date': end_date,
'frequency': getattr(hit, 'periodicity', None),
'time_index_start': start_date,
'time_index_end': end_date,
'units': getattr(hit, 'units', None),
},
'dataset': {
Expand Down
6 changes: 3 additions & 3 deletions series_tiempo_ar_api/apps/metadata/tests/query_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ def test_enhanced_meta(self):
with mock.patch.object(Search, 'execute', return_value=get_mock_search()):
result = q.execute()

self.assertTrue(result['data'][0]['field']['periodicity'], mock_search.periodicity)
self.assertTrue(result['data'][0]['field']['start_date'], mock_search.start_date)
self.assertTrue(result['data'][0]['field']['end_date'], mock_search.end_date)
self.assertTrue(result['data'][0]['field']['frequency'], mock_search.periodicity)
self.assertTrue(result['data'][0]['field']['time_index_start'], mock_search.start_date)
self.assertTrue(result['data'][0]['field']['time_index_end'], mock_search.end_date)

def test_catalog_id_filter_with_alias(self):
alias = CatalogAlias.objects.create(alias='alias_id')
Expand Down

0 comments on commit 7f2a8c5

Please sign in to comment.