Coverage for netbox/configuration_testing.py: 0%

9 statements  

« prev     ^ index     » next       coverage.py v7.15.2, created at 2026-10-10 18:35 +0000

1################################################################### 

2# This file serves as a base configuration for testing purposes # 

3# only. It is not intended for production use. # 

4################################################################### 

5 

6ALLOWED_HOSTS = ['*'] 

7 

8DATABASES = { 

9 'default': { 

10 'NAME': 'netbox', 

11 'USER': 'netbox', 

12 'PASSWORD': 'netbox', 

13 'HOST': 'localhost', 

14 'PORT': '', 

15 'CONN_MAX_AGE': 300, 

16 } 

17} 

18 

19PLUGINS = [ 

20 'netbox.tests.dummy_plugin', 

21 'netbox.tests.dummy_plugin_b', 

22] 

23 

24RQ = { 

25 'COMMIT_MODE': 'auto', 

26} 

27 

28REDIS = { 

29 'tasks': { 

30 'HOST': 'localhost', 

31 'PORT': 6379, 

32 'USERNAME': '', 

33 'PASSWORD': '', 

34 'DATABASE': 0, 

35 'SSL': False, 

36 }, 

37 'caching': { 

38 'HOST': 'localhost', 

39 'PORT': 6379, 

40 'USERNAME': '', 

41 'PASSWORD': '', 

42 'DATABASE': 1, 

43 'SSL': False, 

44 } 

45} 

46 

47SECRET_KEY = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' 

48 

49DEFAULT_PERMISSIONS = {} 

50 

51API_TOKEN_PEPPERS = { 

52 1: 'TEST-VALUE-DO-NOT-USE-TEST-VALUE-DO-NOT-USE-TEST-VALUE-DO-NOT-USE', 

53} 

54 

55LOGGING = { 

56 'version': 1, 

57 'disable_existing_loggers': True 

58}