rename the test app core from test_project to dr_botzo
the ircbot library expects to be able to load from the dr_botzo package Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
parent
d862aa16d8
commit
180d3f8b6f
@ -47,7 +47,7 @@ ignore_missing_imports = true
|
|||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
python_files = ["*_tests.py", "tests.py", "test_*.py"]
|
python_files = ["*_tests.py", "tests.py", "test_*.py"]
|
||||||
DJANGO_SETTINGS_MODULE = "test_project.settings"
|
DJANGO_SETTINGS_MODULE = "dr_botzo.settings"
|
||||||
pythonpath = "tests/test_project"
|
pythonpath = "tests/test_project"
|
||||||
|
|
||||||
[tool.setuptools]
|
[tool.setuptools]
|
||||||
|
2
tests/fixtures/simple_character.json
vendored
2
tests/fixtures/simple_character.json
vendored
@ -38,7 +38,7 @@
|
|||||||
"pk": 1,
|
"pk": 1,
|
||||||
"fields": {
|
"fields": {
|
||||||
"name": "test",
|
"name": "test",
|
||||||
"active": false,
|
"active": true,
|
||||||
"channel": 1
|
"channel": 1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
1
tests/test_project/dr_botzo/__init__.py
Normal file
1
tests/test_project/dr_botzo/__init__.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
__version__ = 'v0.0.1-TEST'
|
@ -1,5 +1,5 @@
|
|||||||
"""
|
"""
|
||||||
ASGI config for test_project project.
|
ASGI config for dr_botzo project.
|
||||||
|
|
||||||
It exposes the ASGI callable as a module-level variable named ``application``.
|
It exposes the ASGI callable as a module-level variable named ``application``.
|
||||||
|
|
||||||
@ -11,6 +11,6 @@ import os
|
|||||||
|
|
||||||
from django.core.asgi import get_asgi_application
|
from django.core.asgi import get_asgi_application
|
||||||
|
|
||||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'test_project.settings')
|
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'dr_botzo.settings')
|
||||||
|
|
||||||
application = get_asgi_application()
|
application = get_asgi_application()
|
@ -1,5 +1,5 @@
|
|||||||
"""
|
"""
|
||||||
Django settings for test_project project.
|
Django settings for dr_botzo project.
|
||||||
|
|
||||||
Generated by 'django-admin startproject' using Django 5.0.4.
|
Generated by 'django-admin startproject' using Django 5.0.4.
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ MIDDLEWARE = [
|
|||||||
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
||||||
]
|
]
|
||||||
|
|
||||||
ROOT_URLCONF = 'test_project.urls'
|
ROOT_URLCONF = 'dr_botzo.urls'
|
||||||
|
|
||||||
TEMPLATES = [
|
TEMPLATES = [
|
||||||
{
|
{
|
||||||
@ -69,7 +69,7 @@ TEMPLATES = [
|
|||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
WSGI_APPLICATION = 'test_project.wsgi.application'
|
WSGI_APPLICATION = 'dr_botzo.wsgi.application'
|
||||||
|
|
||||||
|
|
||||||
# Database
|
# Database
|
@ -1,5 +1,5 @@
|
|||||||
"""
|
"""
|
||||||
URL configuration for test_project project.
|
URL configuration for dr_botzo project.
|
||||||
|
|
||||||
The `urlpatterns` list routes URLs to views. For more information please see:
|
The `urlpatterns` list routes URLs to views. For more information please see:
|
||||||
https://docs.djangoproject.com/en/5.0/topics/http/urls/
|
https://docs.djangoproject.com/en/5.0/topics/http/urls/
|
@ -1,5 +1,5 @@
|
|||||||
"""
|
"""
|
||||||
WSGI config for test_project project.
|
WSGI config for dr_botzo project.
|
||||||
|
|
||||||
It exposes the WSGI callable as a module-level variable named ``application``.
|
It exposes the WSGI callable as a module-level variable named ``application``.
|
||||||
|
|
||||||
@ -11,6 +11,6 @@ import os
|
|||||||
|
|
||||||
from django.core.wsgi import get_wsgi_application
|
from django.core.wsgi import get_wsgi_application
|
||||||
|
|
||||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'test_project.settings')
|
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'dr_botzo.settings')
|
||||||
|
|
||||||
application = get_wsgi_application()
|
application = get_wsgi_application()
|
@ -6,7 +6,7 @@ import sys
|
|||||||
|
|
||||||
def main():
|
def main():
|
||||||
"""Run administrative tasks."""
|
"""Run administrative tasks."""
|
||||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'test_project.settings')
|
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'dr_botzo.settings')
|
||||||
try:
|
try:
|
||||||
from django.core.management import execute_from_command_line
|
from django.core.management import execute_from_command_line
|
||||||
except ImportError as exc:
|
except ImportError as exc:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user