You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def test_union_cli():
filename = os.path.join(os.path.dirname(__file__), 'fixtures/tiles.txt')
expectedFilename = os.path.join(os.path.dirname(__file__), 'expected/unioned.txt')
runner = CliRunner()
result = runner.invoke(cli, ['union', filename])
assert result.exit_code == 0
with open(expectedFilename) as ofile:
expected = ofile.read()
> assert result.output == expected
E assert '{"geometry":...erties": {}}\n' == '{"geometry": ...rties": {}}\n'
E Skipping 8578 identical leading characters in diff, use -v to show
E - ates": [[[3.3837890625000004, 49.29647160265806], [3.3837890625000004, 49.23912083246695], [3.5156250000000004, 49.23912083246695], [3.5156250000000004, 49.26780455063751], [3.427734375, 49.26780455063751], [3.427734375, 49.29647160265806], [3.3837890625000004, 49.29647160265806]]]}, "type": "Feature", "properties": {}}
E + ates": [[[4.04296875, 49.32512199103999], [4.04296875, 49.21042044565028], [4.1748046875, 49.21042044565028], [4.1748046875, 49.32512199103999], [4.04296875, 49.32512199103999]], [[4.0869140625, 49.29647160265806], [4.130859375, 49.29647160265806], [4.130859375, 49.23912083246695], [4.0869140625, 49.23912083246695], [4.0869140625, 49.29647160265806]]]}, "type": "Feature", "properties": {}}
E + {"geometry": {"type": "Polygon", "coordinates": [[[3.3837890625000004, 49.29647160265806], [3.3837890625000004, 49.23912083246695], [3.5156250000000004, 49.23912083246695], [3.5156250000000004, 49.26780455063751], [3.427734375, 49.26780455063751], [3.427734375, 49.29647160265806], [3.3837890625000004, 49.29647160265806]]]}, "type": "Feature", "properties": {}}
E {"geometry": {"type": "Polygon", "coordinates": [[[3.2958984375, 49.23912083246695], [3.2958984375, 49.21042044565028], [3.3398437500000004, 49.21042044565028], [3.3398437500000004, 49.23912083246695], [3.2958984375, 49.23912083246695]]]}, "type": "Feature", "properties": {}}
E {"geometry": {"type": "Polygon", "coordinates": [[[3.3398437500000004, 49.21042044565028], [3.3398437500000004, 49.1817033877066], [3.3837890625000004, 49.1817033877066], [3.3837890625000004, 49.21042044565028], [3.3398437500000004, 49.21042044565028]]]}, "type": "Feature", "properties": {}}
E {"geometry": {"type": "Polygon", "coordinates": [[[3.3837890625000004, 49.06666839558114], [3.3837890625000004, 49.00905080938203], [3.4716796875, 49.00905080938203], [3.4716796875, 49.06666839558114], [3.3837890625000004, 49.06666839558114]]]}, "type": "Feature", "properties": {}}
E {"geometry": {"type": "Polygon", "coordinates": [[[3.3837890625000004, 48.98021698537497], [3.3837890625000004, 48.92249926375822], [3.427734375, 48.92249926375822], [3.427734375, 48.9513664709477], [3.4716796875, 48.9513664709477], [3.4716796875, 48.98021698537497], [3.3837890625000004, 48.98021698537497]]]}, "type": "Feature", "properties": {}}
E {"geometry": {"type": "Polygon", "coordinates": [[[3.2958984375, 48.9513664709477], [3.2958984375, 48.92249926375822], [3.3398437500000004, 48.92249926375822], [3.3398437500000004, 48.9513664709477], [3.2958984375, 48.9513664709477]]]}, "type": "Feature", "properties": {}}
E Detailed information truncated (52 more lines), use "-vv" to show
Le solution
I don't think this is an error with supermercado itself, I think the expected results are incorrect.
cat tests/expected/unioned.txt | fio collect looks like the result of supermercado edges tests/fixtures/tiles.txt | supermercado union | fio collect — See here
Instead, it should look like the result of supermercado union tests/fixtures/tiles.txt | fio collect — See here
The text was updated successfully, but these errors were encountered:
Le fail
test_union_cli()
is failing with:Le solution
I don't think this is an error with
supermercado
itself, I think the expected results are incorrect.cat tests/expected/unioned.txt | fio collect
looks like the result ofsupermercado edges tests/fixtures/tiles.txt | supermercado union | fio collect
— See hereInstead, it should look like the result of
supermercado union tests/fixtures/tiles.txt | fio collect
— See hereThe text was updated successfully, but these errors were encountered: