Skip to content

Commit

Permalink
Update renamed Arches References models and ensure all data loaded in…
Browse files Browse the repository at this point in the history
… tests
  • Loading branch information
johnatawnclementawn committed Oct 2, 2024
1 parent 93fa2c8 commit d4d5d2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/cli_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ def test_import_controlled_list(self):
source=input_file,
stdout=output,
)
list_pk = "e962bdaf-8243-4fbb-bd43-39bc1f54c168"
self.assertTrue(List.objects.filter(pk=list_pk).exists())

self.assertTrue(List.objects.all().count() == 2)
self.assertTrue(ListItem.objects.all().count() == 10)
self.assertTrue(ListItemValue.objects.all().count() == 21)

### TODO Add test for creating new language if language code not in db but found in import file

Expand Down
Binary file modified tests/fixtures/data/controlled_lists.xlsx
Binary file not shown.

0 comments on commit d4d5d2e

Please sign in to comment.