From b3c5e28393a486c3c9348b7000e262a0ec921185 Mon Sep 17 00:00:00 2001 From: John Marshall Date: Wed, 19 Jun 2024 15:53:49 +1200 Subject: [PATCH] Also exercise ParticipantLayer.get_seqr_individual_template() in test case --- test/test_get_participants.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/test_get_participants.py b/test/test_get_participants.py index 5790e0fa1..12c08bc4d 100644 --- a/test/test_get_participants.py +++ b/test/test_get_participants.py @@ -57,3 +57,13 @@ async def test_get_participant_by_eid(self): self.assertEqual(self.ex02, ps[0].external_ids) self.assertEqual(2, ps[0].meta['field']) self.assertEqual('XY', ps[0].karyotype) + + @run_as_sync + async def test_get_seqr_individual_template(self): + """Test get_seqr_individual_template() method""" + pl = ParticipantLayer(self.connection) + template = await pl.get_seqr_individual_template(project=1) + + self.assertIn('headers', template) + self.assertIn('header_map', template) + self.assertIn('rows', template)