def test_tsv_get_created(session, tables):
    session.add(tables.osm_housenumber(osm_id=1, ))
    create_views()

    export_housenumbers()

    assert os.path.exists('/tmp/osmnames/export/test_housenumbers.tsv')
def test_tsv_get_created(session, schema, tables):
    session.add(tables.osm_polygon(
        id=1,
        name="Just a city",
    ))
    create_views()

    export_geonames()

    assert os.path.exists('/tmp/osmnames/export/switzerland_geonames.tsv')
def test_tsv_get_created(session, tables):
    session.add(
            tables.osm_housenumber(
                osm_id=1,
            )
        )
    create_views()

    export_housenumbers()

    assert os.path.exists('/tmp/osmnames/export/switzerland_housenumbers.tsv')