test: admin site

This commit is contained in:
bkfox
2023-06-28 16:26:01 +02:00
parent 39a8fa637e
commit 4aea8b281f
2 changed files with 51 additions and 0 deletions

View File

@@ -2,6 +2,8 @@ from datetime import time, timedelta
import itertools
import logging
from django.contrib.auth.models import User
import pytest
from model_bakery import baker
@@ -9,6 +11,11 @@ from aircox import models
from aircox.test import Interface
@pytest.fixture
def staff_user():
return baker.make(User, is_active=True, is_staff=True)
@pytest.fixture
def logger():
logger = Interface(