def test_cli(self): """ Run CLI program """ with patch.object( sys, 'argv', 'sat-search search --datetime 2017-01-01 --found -q platform=sentinel-2b' .split(' ')): cli()
def test_cli_intersects(self): cmd = 'sat-search search --intersects %s -q platform=sentinel-2b --found' % os.path.join( testpath, 'aoi1.geojson') with patch.object(sys, 'argv', cmd.split(' ')): cli()
def test_cli(self): """ Run CLI program """ with patch.object(sys, 'argv', 'sat-search search --datetime 2017-01-01 --found -p eo:platform=landsat-8'.split(' ')): cli()