Skip to content

Commit

Permalink
Add more test, #11117
Browse files Browse the repository at this point in the history
  • Loading branch information
njkim committed Aug 23, 2024
1 parent 3cc60cf commit dcfd00b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/bulkdata/concept_edit_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,22 @@ def setUp(self):
importer = BranchExcelImporter(request=request, loadid=load_id)
importer.write(request)

def test_get_collection_languages(self):
params = {
"module": ETLModule.objects.get(slug="bulk_edit_concept").pk,
"rdmCollection": "4562ced4-0ca7-46ec-a461-90c0bcb2269a",
}
request = HttpRequest()
request.method = "POST"
request.user = User.objects.get(username="admin")
for k, v in params.items():
request.POST.__setitem__(k, v)

editor = BulkConceptEditor(request=request)
response = editor.get_collection_languages(request=request)

self.assertEqual(response["data"][0]["id"], "en-US")

def test_preview(self):
params = {
"currentPageIndex": 0,
Expand Down

0 comments on commit dcfd00b

Please sign in to comment.