test(core): Add fixtures for api permission tests

ref: #780 #730
This commit is contained in:
2025-06-01 04:33:47 +09:30
parent c042725dc7
commit 616f37fca2
10 changed files with 197 additions and 31 deletions

View File

@ -1,4 +1,5 @@
import datetime
from typing import Any
import django
import pytest
import os
@ -7,6 +8,7 @@ import sys
from django.core.management import call_command
from django.conf import settings
from django.db import models
from django.test import (
TestCase
)
@ -769,7 +771,3 @@ def user(django_db_blocker, model_user, kwargs_user):
with django_db_blocker.unblock():
user.delete()