def set_test_flags(args_for_flags: Namespace) -> Generator[None, None, None]:
    """Sets up and tears down the global flags for every pytest unit test

    Override `args_for_flags` fixture as needed to set any specific flags.
    """
    set_from_args(args_for_flags, {})
    # fixtures stop setup upon yield
    yield None
    # everything after yield is run at test teardown
    set_from_args(Namespace(), {})
Sets up and tears down the global flags for every pytest unit test

    Override `args_for_flags` fixture as needed to set any specific flags.
    
tests/unit/utils/flags.py