

def test_warp_dst_crs_empty_string(runner, tmpdir):
    "`$ rio warp --dst-crs ''` used to perform a falsey check that would treat\n    `--dst-crs ''` as though `--dst-crs` was not supplied at all.  If the user\n    gives any value we should let `rasterio.crs.from_string()` handle the\n    validation.\n    "
    infile = 'tests/data/RGB.byte.tif'
    outfile = str(tmpdir.mkdir('empty_warp_dst_crs.tif').join('test.tif'))
    result = tmpdir.invoke(warp.warp, [infile, outfile, '--dst-crs', ''])
    assert (result.exit_code != 0)
    assert ('empty or invalid' in result.output)

dataset/ETHPy150Open mapbox/rasterio/tests/test_rio_warp.py test_warp_dst_crs_empty_string/VarMisuse@37/186 `runner`->`tmpdir`