Clean code; Refactor environment to pass screenshot content instead of path
This commit is contained in:
@@ -36,4 +36,4 @@ from .misc import get_rule, get_accessibility_tree, get_rule_relativeTime, get_t
|
||||
from .replay import get_replay
|
||||
from .vlc import get_vlc_playing_info, get_vlc_config, get_default_video_player
|
||||
from .vscode import get_vscode_config
|
||||
from .calc import get_conference_city_in_order
|
||||
from .calc import get_conference_city_in_order
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -99,6 +99,7 @@ from .gimp import (
|
||||
check_image_file_size
|
||||
)
|
||||
from .libreoffice import check_libre_locale
|
||||
from .others import compare_epub, check_mp3_meta
|
||||
from .pdf import check_pdf_pages
|
||||
from .slides import (
|
||||
check_presenter_console_disable,
|
||||
@@ -150,7 +151,7 @@ from .vscode import (
|
||||
check_html_background_image,
|
||||
compare_zip_files
|
||||
)
|
||||
from .others import compare_epub, check_mp3_meta
|
||||
|
||||
|
||||
def infeasible():
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user