Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@step("Create map project from layer ")
def create_map_project(project, layer):
call(["/opt/google/bin/genewmapproject", "-o", os.path.join(MAP_PROJECT_PATH, project), os.path.join(MAP_LAYER_PATH, layer)],
"Failed to create map project %s" % project)
@step("Create mercator imagery project ")
def create_merc_imagery_proj(project):
do_create_imagery_proj(project, isMercator=True)
@step("Verify that the state of images for default project is in ")
def verify_state_default_images_table(project, table):
states = list_from_table(table)
verify_state_default_images(project, states)
<table></table>
@step("Clean imagery resource ")
def clean_imagery_resource(resource):
imagery_resource_operation("clean", resource)
@step("Create mercator imagery resource from ")
def create_merc_imagery_resource(resource, srcPath):
srcPath = os.path.join(get_src_data_path(), srcPath)
do_create_imagery_resource(resource, srcPath, isMercator=True)
@step("Create map database from imagery project and map project ")
def create_map_database(database, imagery, mapProject):
call(["/opt/google/bin/genewmapdatabase", "-o", os.path.join(DATABASE_PATH, database),
"--imagery", os.path.join(IMAGERY_PROJECT_PATH, imagery),
"--map", os.path.join(MAP_PROJECT_PATH, mapProject), "--mercator"],
"Failed to create map database %s" % database)
@step("Create terrain project ")
def create_terrain_proj(project):
call(["/opt/google/bin/genewterrainproject", "-o", os.path.join(TERRAIN_PROJECT_PATH, project)],
"Failed to create terrain project %s" % project)
@step("perform GEE new imagery resource having empty directory test")
def geenewimageryresourceNegativeCaseEmptyDir() :
testDir = ""
executeCommand(testDir)
assert (doesKhassetFileExist(outputROOT+"/"+testDir) == False)
@step("Build vector resource ")
def build_vector_resource(resource):
vector_resource_operation("build", resource)
@step("Almost all words have vowels ")
def assert_words_vowel_count(table):
actual = [str(number_of_vowels(word))
for word in table.get_column_values_with_name("Word")]
expected = [str(count)
for count in table.get_column_values_with_name("Vowel Count")]
assert expected == actual
<table></table>