# Path: simplemonitor/util/envconfig.py
# class EnvironmentAwareConfigParser(ConfigParser):
# class EnvironmentAwareInterpolation(BasicInterpolation):
#     def __init__(self, *args: Any, **kwargs: Any) -> None:
#     def read(self, filenames: Any, encoding: Optional[str] = None) -> List[str]:
#     def before_get(
#         self, parser: Any, section: str, option: str, value: Any, defaults: Any
#     ) -> Any:


import os
import unittest
from simplemonitor.util import envconfig
# type: ignore


os.environ["TEST_VALUE"] = "test1"


class TestEnvConfig(unittest.TestCase):
    def test_EnvConfig(self):
        config = envconfig.EnvironmentAwareConfigParser()
        config.read("tests/monitor-env.ini")
        self.assertEqual(config.get("monitor", "monitors"), "tests/monitors-test1.ini")

    def test_EnvConfigKey(self):

# Path: simplemonitor/util/envconfig.py
# class EnvironmentAwareConfigParser(ConfigParser):
# class EnvironmentAwareInterpolation(BasicInterpolation):
#     def __init__(self, *args: Any, **kwargs: Any) -> None:
#     def read(self, filenames: Any, encoding: Optional[str] = None) -> List[str]:
#     def before_get(
#         self, parser: Any, section: str, option: str, value: Any, defaults: Any
#     ) -> Any:


# Path: tests/test_envconfig.py
import os
import unittest
from simplemonitor.util import envconfig

# type: ignore


os.environ["TEST_VALUE"] = "test1"


class TestEnvConfig(unittest.TestCase):
    def test_EnvConfig(self):
        config = envconfig.EnvironmentAwareConfigParser()
        config.read("tests/monitor-env.ini")
        self.assertEqual(config.get("monitor", "monitors"), "tests/monitors-test1.ini")

    def test_EnvConfigKey(self):

        config = envconfig.EnvironmentAwareConfigParser()