How to use the mappyfile.cli.get_mapfiles function in mappyfile

To help you get started, we’ve selected a few mappyfile examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github geographika / mappyfile / tests / test_cli.py View on Github external
def test_get_mapfiles():

    tf = tempfile.NamedTemporaryFile(suffix=".map")
    print(tf.name)

    mapfiles = [tf.name]
    found_mapfiles = cli.get_mapfiles(mapfiles)
    print(found_mapfiles)
    os.remove(tf.name)