From f810d0342dea4669056cba9d2e6fa06b3cb739ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Ma=CC=88der?= Date: Wed, 20 Jan 2021 09:36:13 +0100 Subject: [PATCH] Skip Startup Scripts in Unit Tests --- docker-compose.test.yml | 2 ++ test.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-compose.test.yml b/docker-compose.test.yml index a7fa7a3..8233bf6 100644 --- a/docker-compose.test.yml +++ b/docker-compose.test.yml @@ -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 diff --git a/test.sh b/test.sh index 2249316..cc033b0 100755 --- a/test.sh +++ b/test.sh @@ -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() {