mirror of
https://github.com/lucaspalomodevelop/netbox-acls.git
synced 2026-03-12 23:27:23 +00:00
commit
d9cf49a45c
@ -2,6 +2,7 @@ autoflake
|
||||
autopep8
|
||||
bandit
|
||||
black
|
||||
coverage
|
||||
flake8
|
||||
isort
|
||||
mypy
|
||||
|
||||
15
.gitignore
vendored
15
.gitignore
vendored
@ -163,3 +163,18 @@ cython_debug/
|
||||
.vscode/
|
||||
# JetBrains
|
||||
.idea/
|
||||
|
||||
# Temporary files
|
||||
*.tmp
|
||||
tmp/
|
||||
|
||||
# coverage
|
||||
coverage/
|
||||
htmlcov/
|
||||
.coverage
|
||||
.coverage.*
|
||||
coverage.xml
|
||||
*.cover
|
||||
|
||||
# ruff
|
||||
.ruff_cache/
|
||||
|
||||
11
Makefile
11
Makefile
@ -75,8 +75,15 @@ rebuild: setup makemigrations migrate collectstatic start
|
||||
|
||||
.PHONY: test
|
||||
test: setup
|
||||
${VENV_PY_PATH} ${NETBOX_MANAGE_PATH}/manage.py makemigrations ${PLUGIN_NAME} --check
|
||||
${VENV_PY_PATH} ${NETBOX_MANAGE_PATH}/manage.py test ${PLUGIN_NAME}
|
||||
${NETBOX_MANAGE_PATH}/manage.py makemigrations ${PLUGIN_NAME} --check
|
||||
coverage run --source "netbox_acls" ${NETBOX_MANAGE_PATH}/manage.py test ${PLUGIN_NAME} -v 2
|
||||
|
||||
.PHONY: coverage_report
|
||||
coverage_report:
|
||||
coverage report
|
||||
|
||||
.PHONY: test_coverage
|
||||
test_coverage: test coverage_report
|
||||
|
||||
#relpatch:
|
||||
# $(eval GSTATUS := $(shell git status --porcelain))
|
||||
|
||||
2
test.sh
2
test.sh
@ -17,7 +17,7 @@ doco="docker compose --file docker-compose.yml"
|
||||
test_netbox_unit_tests() {
|
||||
echo "⏱ Running NetBox Unit Tests"
|
||||
$doco run --rm netbox python manage.py makemigrations netbox_acls --check
|
||||
$doco run --rm netbox python manage.py test netbox_acls
|
||||
$doco run --rm netbox python manage.py test netbox_acls -v 2
|
||||
}
|
||||
|
||||
test_cleanup() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user