Merge pull request #397 from netbox-community/SkipStartupScriptsForUnitTests
Skip Startup Scripts in Unit Tests
This commit is contained in:
commit
4d8d02e35a
@ -7,6 +7,8 @@ services:
|
|||||||
- redis
|
- redis
|
||||||
- redis-cache
|
- redis-cache
|
||||||
env_file: env/netbox.env
|
env_file: env/netbox.env
|
||||||
|
environment:
|
||||||
|
SKIP_STARTUP_SCRIPTS: ${SKIP_STARTUP_SCRIPTS-false}
|
||||||
user: '101'
|
user: '101'
|
||||||
volumes:
|
volumes:
|
||||||
- ./startup_scripts:/opt/netbox/startup_scripts:z,ro
|
- ./startup_scripts:/opt/netbox/startup_scripts:z,ro
|
||||||
|
2
test.sh
2
test.sh
@ -56,7 +56,7 @@ test_setup() {
|
|||||||
|
|
||||||
test_netbox_unit_tests() {
|
test_netbox_unit_tests() {
|
||||||
echo "⏱ Running 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() {
|
test_initializers() {
|
||||||
|
Loading…
Reference in New Issue
Block a user