Skip to content

Commit bc43446

Browse files
authored
Merge pull request #178 from AAdewunmi/feat/test-merchant-portal-pagination-and-ownership
test(returns): align merchant portal view tests with integration coverage
2 parents fd9ce9e + 51bf689 commit bc43446

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/test_merchant_portal_views.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
"""Tests for merchant portal routes and views."""
1+
"""Integration tests for merchant portal views."""
22

33
from __future__ import annotations
44

55
from datetime import timedelta
66

7+
import pytest
78
from django.contrib.auth.models import Group
89
from django.contrib.messages import get_messages
910
from django.core.files.uploadedfile import SimpleUploadedFile
@@ -13,6 +14,8 @@
1314
from returns.models import CaseEvent, EvidenceDocument
1415
from tests.factories import CaseEventFactory, ReturnCaseFactory
1516

17+
pytestmark = pytest.mark.django_db
18+
1619

1720
def add_group(user, group_name: str) -> None:
1821
"""Attach a Django group to a user for test setup."""

0 commit comments

Comments
 (0)