Coverage for src/probable_fiesta/config/variables.py: 100%
20 statements
« prev ^ index » next coverage.py v7.1.0, created at 2023-01-30 18:57 -0500
« prev ^ index » next coverage.py v7.1.0, created at 2023-01-30 18:57 -0500
1import os
2from logging import INFO
3from .. import __about__
5class LoggerDef():
6 """Default values for the logger config."""
7 ROOT_DIR = str(os.path.dirname(os.path.abspath(__file__)).rsplit("/config")[0])
8 LEVEL = INFO
9 DIRECTORY = f'{ROOT_DIR}/logger'
10 FORMAT = 'simple'
11 NAME = 'main_log'
12 TYPE = 'default'
14class PackageDef():
15 """Default values for the package config."""
16 NAME = 'probable_fiesta'
18class VariablesDef():
19 """Default values for the variables config."""
20 VERSION = __about__.__version__
22class DotEnvDef():
23 """Default values for the dotenv config."""
24 # This has precedence over the PackageDefaults
25 def __init__(self):
26 self.PACKAGE_NAME = 'probable_fiesta'
27 self.PACKAGE_VERSION = '0.0.1'
28 # Add more variables here
30 def __iter__(self):
31 return iter(self.__dict__)