update
This commit is contained in:
@@ -1 +1 @@
|
||||
from .test_banner import * # noqa
|
||||
from .test_banner import *
|
||||
|
||||
@@ -2,18 +2,18 @@ import pytest
|
||||
from django.urls import reverse
|
||||
from rest_framework.test import APIClient
|
||||
|
||||
from core.apps.api.models import Banner
|
||||
from core.apps.api.models import BannerModel
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def instance(db):
|
||||
return Banner._baker()
|
||||
return BannerModel._baker()
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def api_client(instance):
|
||||
client = APIClient()
|
||||
## client.force_authenticate(user=instance.user)
|
||||
# client.force_authenticate(user=instance.user)
|
||||
return client, instance
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user