from typing import Dict


def get_test_mode_enabled(env: Dict[str, str]) -> bool:
    """Get the test mode, which is used only for unit testing.
    Note that the env value has a '.' in it, which should be only settable through
    explicit os.environ setting."""
    return env.get('TEST.MODE', 'x') == 'unit-test'