Skip to content

Commit

Permalink
feat: add warrior_detail_view_tests.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SupraSummus committed Sep 29, 2024
1 parent 19eedba commit 3450467
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions warriors/tests/warrior_detail_view_tests.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import pytest
from django.urls import reverse
from warriors.models import WarriorArena

@pytest.mark.django_db
def test_warrior_detail_view_200(client):
warrior = WarriorArena.objects.create(name="Test Warrior")
url = reverse('global_warrior_detail', kwargs={'warrior_id': warrior.id})
response = client.get(url)
assert response.status_code == 200

0 comments on commit 3450467

Please sign in to comment.