Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1131 | integration test for all cascade levels
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Nov 25, 2021
1 parent 525c69d commit fc8577a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions core/integration_tests/tests_concepts.py
Original file line number Diff line number Diff line change
Expand Up @@ -972,6 +972,22 @@ def test_get_200(self): # pylint: disable=too-many-statements
])
)

response = self.client.get(concept1.uri + '$cascade/?method=sourceToConcepts&cascadeLevels=*')

self.assertEqual(response.status_code, 200)
self.assertEqual(len(response.data['entry']), 6)
self.assertEqual(
sorted([data['url'] for data in response.data['entry']]),
sorted([
concept1.uri,
concept2.uri,
mapping1.uri,
mapping2.uri,
mapping3.uri,
mapping4.uri,
])
)

response = self.client.get(
concept1.uri + '$cascade/?method=sourceToConcepts&cascadeLevels=0&includeMappings=false')

Expand Down

0 comments on commit fc8577a

Please sign in to comment.