@@ -0,0 +1,2712 @@
+import json%0Aimport logging%0Aimport sys%0A%0Afrom click.testing import CliRunner%0Aimport pytest%0A%0Afrom rasterio.rio.main import main_group%0A%0A%0Alogging.basicConfig(stream=sys.stderr, level=logging.DEBUG)%0A%0A%0Adef test_feature_seq():%0A    %22%22%22GeoJSON sequence w/out RS is the default%22%22%22%0A    runner = CliRunner()%0A    result = runner.invoke(%0A        main_group, %5B'gcps', 'tests/data/white-gemini-iv.vrt'%5D)%0A    assert result.exit_code == 0%0A    assert result.output.count('%22Feature%22') == 3%0A    assert '-78' in result.output%0A%0Adef test_collection():%0A    %22%22%22GeoJSON collections can be had, optionally%22%22%22%0A    runner = CliRunner()%0A    result = runner.invoke(%0A        main_group, %5B'gcps', 'tests/data/white-gemini-iv.vrt', '--collection'%5D)%0A    assert result.exit_code == 0%0A    assert result.output.count('%22FeatureCollection%22') == 1%0A    assert '-78' in result.output%0A%0A%0Adef test_feature_seq_indent_rs():%0A    %22%22%22Indentation of a feature sequence succeeds with ascii RS option%22%22%22%0A    runner = CliRunner()%0A    result = runner.invoke(%0A        main_group,%0A        %5B'gcps', 'tests/data/white-gemini-iv.vrt', '--indent', '2', '--rs'%5D)%0A    assert result.exit_code == 0%0A%0A%0Adef test_feature_seq_indent_no_rs():%0A    %22%22%22Indentation of a feature sequence fails without ascii RS option%22%22%22%0A    runner = CliRunner()%0A    result = runner.invoke(%0A        main_group, %5B'gcps', 'tests/data/white-gemini-iv.vrt', '--indent', '2'%5D)%0A    assert result.exit_code == 2%0A%0A%0Adef test_projected():%0A    %22%22%22Projected GeoJSON is an option%22%22%22%0A    runner = CliRunner()%0A    result = runner.invoke(%0A        main_group, %5B'gcps', 'tests/data/white-gemini-iv.vrt', '--projected'%5D)%0A    assert result.exit_code == 0%0A    assert '-78' not in result.output%0A%0A%0Adef test_feature_precision():%0A    %22%22%22Coordinate rounding is an option%22%22%22%0A    runner = CliRunner()%0A    result = runner.invoke(%0A        main_group, %5B'gcps', 'tests/data/white-gemini-iv.vrt', '--projected', '--precision', '1'%5D)%0A    assert result.exit_code == 0%0A    assert '116792.0,' in result.output%0A%0A%0Adef test_collection_precision():%0A    %22%22%22Coordinate rounding is an option%22%22%22%0A    runner = CliRunner()%0A    result = runner.invoke(%0A        main_group, %5B'gcps', 'tests/data/white-gemini-iv.vrt', '--collection', '--projected', '--precision', '1'%5D)%0A    assert result.exit_code == 0%0A    assert '%22FeatureCollection%22' in result.output%0A    assert '116792.0,' in result.output%0A%0A%0Adef test_collection_geographic_precision():%0A    %22%22%22Unrounded coordinates are an option%22%22%22%0A    runner = CliRunner()%0A    result = runner.invoke(%0A        main_group, %5B'gcps', 'tests/data/white-gemini-iv.vrt', '--collection', '--projected'%5D)%0A    assert result.exit_code == 0%0A    assert '%22FeatureCollection%22' in result.output%0A    assert '116792.0,' in result.output%0A

Add uncommitted tests