Skip to content

Commit

Permalink
fix: one more test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravencentric committed Feb 8, 2025
1 parent 87f58c9 commit e9f8f8b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,8 @@ def test_nzb_with_missing_file_attributes() -> None:
""").strip()
with pytest.raises(InvalidNzbError, match=r"Invalid RFC3339 encoded datetime - at `\$\.posted_at`"):
Nzb.from_str(nzb)


def test_non_existent_file() -> None:
with pytest.raises(FileNotFoundError, match="blahblah"):
Nzb.from_file("blahblah")

0 comments on commit e9f8f8b

Please sign in to comment.