def test_detects_no_value_format():
    assert ((typed_dotenv._get_value_format("""
simply=keys
without_any="values: comment"
            """)) is None)
def test_detects_value_format_json():
    assert (typed_dotenv._get_value_format("""
# values: json
rick="morty"
mort_=is an error
""") == VALUE_FORMATS.json)
def test_detects_value_format_invalid():
    assert ((typed_dotenv._get_value_format("""
# values: jsoneee
rick=is not moert
            """)) is None)
def test_detects_value_format_toml():
    assert (typed_dotenv._get_value_format("""
# values: toml
rick=true
but_not=True
""") == VALUE_FORMATS.toml)
def test_detects_value_format_yaml_1_2():
    assert (typed_dotenv._get_value_format("""
# values: yaml 1.2
rick=adn
""") == VALUE_FORMATS.yaml_1_2)
def test_detects_value_format_yaml_1_1():
    assert (typed_dotenv._get_value_format("""
# values: yaml 1.1
rick=and-morty
""") == VALUE_FORMATS.yaml_1_1)
def test_detects_value_format_python_eval():
    assert (typed_dotenv._get_value_format("""
# values: python-unsafe
THINGIE=testie
""") == VALUE_FORMATS.python_eval)
def test_detects_value_format_python_literal():
    assert (typed_dotenv._get_value_format("""
# values: python
THING=test
    """) == VALUE_FORMATS.python_literal)