Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravencentric committed Sep 18, 2024
1 parent c1a86f7 commit d95b168
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/pynyaa/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ class Submitter(ParentModel):
>>> print(a)
John
>>> print(repr(a))
Submitter(name='John', url='https://nyaa.si/user/john', is_trusted=True, is_banned=False)
>>> a == b
True
Expand Down Expand Up @@ -124,6 +121,7 @@ class NyaaTorrentPage(ParentModel):
>>> set((a, b, c)) == {a, c} == {b, c} # dedupe
True
```
"""

id: int
Expand Down
6 changes: 3 additions & 3 deletions tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def test_nyaa_torrent_page() -> None:
title="title",
category=Category.ANIME_ENGLISH_TRANSLATED.value,
submitter=submitter_a,
date=datetime(year=2024, month=6, day=30),
datetime=datetime(year=2024, month=6, day=30),
information=None,
seeders=20,
leechers=30,
Expand All @@ -50,7 +50,7 @@ def test_nyaa_torrent_page() -> None:
title="title",
category=Category.ANIME_ENGLISH_TRANSLATED.value,
submitter=submitter_b,
date=datetime(year=2024, month=6, day=30),
datetime=datetime(year=2024, month=6, day=30),
information=None,
seeders=34,
leechers=23,
Expand All @@ -70,7 +70,7 @@ def test_nyaa_torrent_page() -> None:
title="title",
category=Category.ANIME_ENGLISH_TRANSLATED.value,
submitter=submitter_c,
date=datetime(year=2024, month=6, day=30),
datetime=datetime(year=2024, month=6, day=30),
information=None,
seeders=34,
leechers=23,
Expand Down

0 comments on commit d95b168

Please sign in to comment.