Skip Startup Scripts in Unit Tests

This commit is contained in:
Christian Mäder 2021-01-20 09:36:13 +01:00
parent 323e18278a
commit f810d0342d
2 changed files with 3 additions and 1 deletions

View File

@ -7,6 +7,8 @@ services:
- redis
- redis-cache
env_file: env/netbox.env
environment:
SKIP_STARTUP_SCRIPTS: ${SKIP_STARTUP_SCRIPTS-false}
user: '101'
volumes:
- ./startup_scripts:/opt/netbox/startup_scripts:z,ro

View File

@ -56,7 +56,7 @@ test_setup() {
test_netbox_unit_tests() {
echo "⏱ Running Netbox Unit Tests"
$doco run --rm netbox ./manage.py test
SKIP_STARTUP_SCRIPTS=true $doco run --rm netbox ./manage.py test
}
test_initializers() {