Clean code; Refactor environment to pass screenshot content instead of path
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import csv
|
||||
|
||||
|
||||
# I want to write a function, reads a csv file, and get all the contents in the third column in the order of rows
|
||||
def get_conference_city_in_order(env, config):
|
||||
# read the csv file
|
||||
@@ -12,4 +13,3 @@ def get_conference_city_in_order(env, config):
|
||||
# get the third column in the order of rows
|
||||
conference_city_list = [row[2] for row in reader]
|
||||
return conference_city_list
|
||||
|
||||
Reference in New Issue
Block a user