test: migrate backend suites to pytest with module coverage gate
Split backend tests into unit and integration suites, add isolated fixtures and coverage enforcement, and update CI and test documentation. Cover current authentication, content, notification, payment, media, and admin flows; fix behaviors revealed by the new tests. Validate both suites and the per-module gate against local PostgreSQL.
This commit is contained in:
10
apps/users/tests/unit/test_resources.py
Normal file
10
apps/users/tests/unit/test_resources.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import pytest
|
||||
from apps.users.models import User
|
||||
from apps.users.resources import UserResource
|
||||
|
||||
@pytest.mark.unit
|
||||
class TestUserResourceTests:
|
||||
|
||||
def test_email_identity_flag_remains_exportable(self):
|
||||
resource = UserResource()
|
||||
assert 'is_email_verified' in resource.fields
|
||||
Reference in New Issue
Block a user