mirror of
https://github.com/ae-utbm/sith.git
synced 2025-04-19 04:20:18 +00:00
17 lines
473 B
Python
17 lines
473 B
Python
import pytest
|
|
from django.test import Client
|
|
from django.urls import reverse
|
|
from model_bakery import baker
|
|
|
|
from club.models import Club
|
|
from core.models import User
|
|
|
|
|
|
@pytest.mark.django_db
|
|
def test_sales_page_doesnt_crash(client: Client):
|
|
club = baker.make(Club)
|
|
admin = baker.make(User, is_superuser=True)
|
|
client.force_login(admin)
|
|
response = client.get(reverse("club:club_sellings", kwargs={"club_id": club.id}))
|
|
assert response.status_code == 200
|