def METHOD_NAME(photosdb):
    # test export edited file if not actually edited
    import os
    import os.path
    import pathlib
    import tempfile
    import osxphotos
    tempdir = tempfile.TemporaryDirectory(prefix="osxphotos_")
    dest = tempdir.name
    photos = photosdb.photos(uuid=[UUID_DICT["no_adjustments"]])
    with pytest.raises(Exception) as e:
        assert photos[0].export(dest, use_photos_export=True, edited=True)
    assert e.type == ValueError