Skip to content

Commit

Permalink
fix: added test for invalid input
Browse files Browse the repository at this point in the history
  • Loading branch information
TimD1 committed Jan 14, 2025
1 parent 45f7eca commit c69320f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/fgpyo/fasta/test_sequence_dictionary.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,8 @@ def test_sequence_dictionary_to_and_from_sam() -> None:
assert SequenceDictionary.from_sam(mapping) == sd
assert SequenceDictionary.from_sam(header) == sd
assert sd.to_sam_header(extra_header={"RG": [{"ID": "foo"}]})
with pytest.raises(ValueError):
SequenceDictionary.from_sam([{}])


def test_sequence_dictionary_mapping() -> None:
Expand Down

0 comments on commit c69320f

Please sign in to comment.