def test_gnmanalyse_2(): if test_cli_utilities.get_gnmmanage_path() is None: pytest.skip() if test_cli_utilities.get_gnmanalyse_path() is None: pytest.skip() ret = gdaltest.runexternal(test_cli_utilities.get_gnmanalyse_path() + ' kpaths 61 50 3 tmp/test_gnm') assert ret.find('Feature Count: 61') != -1
def test_gnmanalyse_1(): if test_cli_utilities.get_gnmmanage_path() is None: pytest.skip() if test_cli_utilities.get_gnmanalyse_path() is None: pytest.skip() ret = gdaltest.runexternal(test_cli_utilities.get_gnmanalyse_path() + ' dijkstra 61 50 tmp/test_gnm') assert ret.find('Feature Count: 19') != -1
def test_gnmanalyse_2(): if test_cli_utilities.get_gnmanalyse_path() is None: return 'skip' ret = gdaltest.runexternal(test_cli_utilities.get_gnmanalyse_path() + ' kpaths 61 50 3 tmp/test_gnm') if ret.find('Feature Count: 61') == -1: return 'fail' return 'success'
def test_gnmanalyse_1(): if test_cli_utilities.get_gnmanalyse_path() is None: return 'skip' ret = gdaltest.runexternal(test_cli_utilities.get_gnmanalyse_path() + ' dijkstra 61 50 tmp/test_gnm') if ret.find('Feature Count: 19') == -1: return 'fail' return 'success'