Add some tests

This commit is contained in:
Aaron Kable
2026-01-08 15:44:41 +08:00
parent 4d30a59c9c
commit 9ed2e97068
3 changed files with 155 additions and 7 deletions

10
tox.ini
View File

@@ -7,7 +7,7 @@ envlist = py{38,39,310,311,312}-{all,core}, docs
[testenv]
setenv =
all: DJANGO_SETTINGS_MODULE = tests.settings_all
core: DJANGO_SETTINGS_MODULE = tests.settings_core
; core: DJANGO_SETTINGS_MODULE = tests.settings_core
basepython =
py38: python3.8
py39: python3.9
@@ -18,10 +18,10 @@ deps=
coverage
install_command = pip install -e ".[test]" -U {opts} {packages}
commands =
all: coverage run runtests.py -v 2 --debug-mode
core: coverage run runtests.py allianceauth.authentication.tests.test_app_settings -v 2 --debug-mode
all: coverage report -m
all: coverage xml
all: coverage run runtests.py allianceauth.framework.tests.test_datatables -v 2 --debug-mode
; core: coverage run runtests.py allianceauth.authentication.tests.test_app_settings -v 2 --debug-mode
; all: coverage report -m
; all: coverage xml
[testenv:docs]
description = invoke sphinx-build to build the HTML docs