Skip to content

Commit

Permalink
Fix incorrect expected test value
Browse files Browse the repository at this point in the history
  • Loading branch information
nadove-ucsc authored and achave11-ucsc committed Aug 16, 2024
1 parent c55e152 commit 1b14f5d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/service/test_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -3498,11 +3498,13 @@ def test_projects_response(self):
self.assertEqual(expected_bionetwork_name, project['bionetworkName'])
self.assertTrue(project['isTissueAtlasProject'])

tissue_atlas = {
tissue_atlas = response_json['termFacets']['tissueAtlas']
self.assertEqual(5, tissue_atlas['total'])
terms = {
entry['term']: entry['count']
for entry in response_json['termFacets']['tissueAtlas']['terms']
for entry in tissue_atlas['terms']
}
self.assertEqual({None: 1, 'Lung': 1, 'Retina': 1, 'Blood': 1}, tissue_atlas)
self.assertEqual({None: 2, 'Lung': 1, 'Retina': 1, 'Blood': 1}, terms)


class TestUnpopulatedIndexResponse(IndexResponseTestCase):
Expand Down

0 comments on commit 1b14f5d

Please sign in to comment.