fix some tests

This commit is contained in:
FuzzyGrim
2026-05-17 20:18:45 +02:00
parent 0300519742
commit be956ce994
2 changed files with 8 additions and 1 deletions

View File

@@ -105,6 +105,12 @@ uv run zensical serve
## Testing
Install Playwright browsers before running integration tests:
```bash
uv run playwright install
```
Run the Django test suite from the `src` directory:
```bash

View File

@@ -113,6 +113,7 @@ class HomeViewTests(TestCase):
status=Status.IN_PROGRESS.value,
)
base_watched_at = timezone.now()
for i in range(1, 6): # Create 5 episodes
episode_item = Item.objects.create(
media_id="1668",
@@ -126,7 +127,7 @@ class HomeViewTests(TestCase):
Episode.objects.create(
item=episode_item,
related_season=season,
end_date=timezone.now() - timezone.timedelta(days=i),
end_date=base_watched_at - timezone.timedelta(days=6 - i),
)
anime_item = Item.objects.create(