Coverage for config/settings/test.py: 100%

8 statements  

« prev     ^ index     » next       coverage.py v7.10.7, created at 2025-10-21 15:45 +0000

1# GENERAL 

2# ------------------------------------------------------------------------------ 

3# https://docs.djangoproject.com/en/stable/ref/settings/#debug 

4DEBUG = True 

5# https://docs.djangoproject.com/en/stable/ref/settings/#language-code 

6LANGUAGE_CODE = "en-us" 

7# https://docs.djangoproject.com/en/stable/ref/settings/#site-id 

8SITE_ID = 1 

9 

10 

11# DATABASES 

12# ------------------------------------------------------------------------------ 

13# https://docs.djangoproject.com/en/stable/ref/settings/#databases 

14DATABASES = { 

15 "default": { 

16 "ENGINE": "django.db.backends.sqlite3", 

17 "NAME": "django_view_manager_db", # Only needed during setup of apps and migrations. Db file is not committed. 

18 } 

19} 

20 

21 

22# DEFAULT_AUTO_FIELD 

23# ------------------------------------------------------------------------------ 

24# https://docs.djangoproject.com/en/stable/releases/3.2/#customizing-type-of-auto-created-primary-keys 

25# https://docs.djangoproject.com/en/stable/ref/settings/#std:setting-DEFAULT_AUTO_FIELD 

26DEFAULT_AUTO_FIELD = "django.db.models.AutoField" 

27 

28 

29# APPS 

30# ------------------------------------------------------------------------------ 

31# https://docs.djangoproject.com/en/stable/ref/settings/#installed-apps 

32INSTALLED_APPS = [ 

33 "django.contrib.auth", 

34 "django.contrib.contenttypes", 

35 "django.contrib.sites", 

36 "tests.animals", 

37 "tests.employees", 

38 "tests.food", 

39 "tests.musicians", 

40 "tests.store", 

41 "django_view_manager.utils", 

42] 

43 

44 

45# LOGGING 

46# ------------------------------------------------------------------------------ 

47# https://docs.djangoproject.com/en/stable/ref/settings/#logging 

48# See https://docs.djangoproject.com/en/stable/topics/logging for 

49# more details on how to customize your logging configuration. 

50LOGGING = { 

51 "version": 1, 

52 "disable_existing_loggers": False, 

53 "formatters": {"verbose": {"format": "%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s"}}, 

54 "handlers": { 

55 "console": { 

56 "level": "DEBUG", 

57 "class": "logging.StreamHandler", 

58 "formatter": "verbose", 

59 } 

60 }, 

61 "root": {"level": "INFO", "handlers": ["console"]}, 

62} 

63 

64 

65# TEST_RUNNER 

66# https://docs.djangoproject.com/en/stable/ref/settings/#test-runner 

67TEST_RUNNER = "tests.test_runner.TestRunner"