def test_force_overwrite(tmpdir):
    foo_tif = tmpdir.join('foo.tif')
    foo_tif.write("content")
    output, inputs = helpers.resolve_inout(
        files=[str(x) for x in tmpdir.listdir()], force_overwrite=True)
    assert output == str(foo_tif)
Forced overwrite of existing file succeeds.
dataset/ETHPy150Open mapbox/rasterio/tests/test_rio_helpers.py/test_force_overwrite