Add: account views, tests, override user model

This commit is contained in:
2023-09-10 12:34:54 +09:00
parent 305001c9ab
commit 2cba6321c2
25 changed files with 375 additions and 19 deletions

View File

@@ -1,12 +1,13 @@
from pathlib import Path
from django.core.files.base import ContentFile
from django.conf import settings
from django.contrib.auth.models import User
from django.urls import reverse
from rest_framework import status
from rest_framework.test import APITestCase
from account.models import User
from collector.models import Archive, Platform, Ticket

View File

@@ -2,10 +2,11 @@ import uuid
import hashlib
from django.core.validators import MaxValueValidator, MinValueValidator
from django.contrib.auth.models import User
from django.db import models
from django.urls import reverse
from account.models import User
from .utils.helpers import logs_dir_path

View File

@@ -1,9 +1,9 @@
from pathlib import Path
from django.test import TestCase
from django.contrib.auth.models import User
from django.core.files.base import ContentFile
from django.conf import settings
from account.models import User
from collector.models import Platform, Ticket, Archive

View File

@@ -1,6 +1,7 @@
from django.test import TestCase
from django.urls import resolve, reverse
from django.contrib.auth.models import User
from account.models import User
from collector import views
from collector.models import Ticket, Platform

View File

@@ -1,6 +1,7 @@
from django.test import TestCase, Client
from django.urls import reverse
from django.contrib.auth.models import User
from account.models import User
from collector.models import Ticket, Platform