Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-parker committed Sep 28, 2024
1 parent 02f9ad8 commit da3faff
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ena-submission/scripts/test_ena_submission.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,16 @@ def test_get_chromsome_assemblies(self):
"insdc_accession_full": "OZ189935.1",
},
)
insdc_accession_range = "OZ189935-OZ189935"
segment_order = ["seg3"]
result_single = get_chromsome_assemblies(insdc_accession_range, segment_order)
self.assertEqual(
result_single,
{
"insdc_accession_seg3": "OZ189935",
"insdc_accession_full_seg3": "OZ189935.1",
},
)
insdc_accession_range = "OZ189935-OZ189936"
segment_order = ["main"]
with self.assertRaises(requests.exceptions.RequestException):
Expand Down

0 comments on commit da3faff

Please sign in to comment.