Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1524 | attempting test fix on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Mar 23, 2023
1 parent 7dae981 commit 43ba46e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions core/integration_tests/tests_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -1030,8 +1030,8 @@ class SourceSummaryViewTest(OCLAPITestCase):
def index(self):
if settings.ENV == 'ci':
rebuild_indexes(['concepts', 'mappings'])
ConceptDocument().update(self.source.concepts_set.all())
MappingDocument().update(self.source.mappings_set.all())
ConceptDocument().update(self.source.concepts_set.all())
MappingDocument().update(self.source.mappings_set.all())

def setUp(self):
self.maxDiff = None
Expand Down Expand Up @@ -1130,8 +1130,8 @@ def test_get_200_verbose(self):
'retired': 0,
'concept_class': [(self.random_key, 2), (f'foobar-{self.random_key}', 2)],
'datatype': [(self.random_key, 2), (f'foo-{self.random_key}', 1), (f'foobar-{self.random_key}', 1)],
'locale': [],
'name_type': []
'locale': [('en', 2)],
'name_type': [('SHORT', 2)]
}
)
self.assertEqual(
Expand Down
1 change: 0 additions & 1 deletion core/sources/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,6 @@ def _get_resource_facets(self, facet_class):
try:
facets = search.execute().facets.to_dict()
except TransportError as ex: # pragma: no cover
print("*****", ex)
raise Http400(detail='Data too large.') from ex

return facets
Expand Down

0 comments on commit 43ba46e

Please sign in to comment.