mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2025-09-18 05:29:37 +08:00
Format with isort/ruff and implement linter step in Woodpecker
This commit is contained in:
parent
a3a9351682
commit
cae8e1c411
10 changed files with 38 additions and 22 deletions
|
@ -4,7 +4,6 @@ Minimal Django settings file for tests
|
|||
|
||||
from core.settings import * # noqa: F403
|
||||
|
||||
|
||||
# Override database to SQLite
|
||||
DATABASES = {
|
||||
"default": {
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
Post-migrate signal handlers for creating initial data for accounts app.
|
||||
"""
|
||||
|
||||
import os
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
|
||||
from accounts.models import CustomUser
|
||||
from core.settings import config, TESTS_DIR
|
||||
from core.settings import TESTS_DIR, config
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
import pytest
|
||||
from core.settings import config
|
||||
import users
|
||||
|
||||
|
||||
from rest_framework.test import APIClient
|
||||
|
||||
from core.settings import config
|
||||
|
||||
client = APIClient()
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue