本文整理汇总了Python中myLib.miro_app.MiroApp.add_watched_folder方法的典型用法代码示例。如果您正苦于以下问题:Python MiroApp.add_watched_folder方法的具体用法?Python MiroApp.add_watched_folder怎么用?Python MiroApp.add_watched_folder使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类myLib.miro_app.MiroApp
的用法示例。
在下文中一共展示了MiroApp.add_watched_folder方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_236
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import add_watched_folder [as 别名]
def test_236(self):
"""http://litmus.pculture.org/show_test.cgi?id=236 startup, corrupt item_info_cache
Litmus Test Title:: 236 - rebuild item_info_cache on startup.
Description:
1. Clean up Miro support and vidoes directories
2. Launch - walk through 1st tieme install dialog and search everywhere
"""
reg = MiroRegions()
miro = MiroApp()
folder_path = os.path.join(os.getenv("PCF_TEST_HOME"),"Miro","TestData")
miro.add_watched_folder(reg, folder_path)
miro.quit_miro()
myLib.config.delete_preferences()
setAutoWaitTimeout(myLib.testvars.timeout)
#set the search regions
miro.restart_miro()
miro.first_time_startup_dialog(lang="Default",run_on_start="No",search="No",search_path=None,itunes="No")
waitVanish("Preparing")
time.sleep(10)
reg = MiroRegions()
miro = MiroApp()
miro.click_sidebar_tab(reg, "Videos")
miro.tab_search(reg, title="Deerhunter",confirm_present=True)
示例2: test_721
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import add_watched_folder [as 别名]
def test_721(self):
"""http://litmus.pculture.org/show_test.cgi?id=721 Menu New Search Watched
1. Add list of guide feeds (Static List)
2. From Sidebar -> New Search feed, create saved search channel
3. Verify Search saved
4. Cleanup
"""
reg = MiroRegions()
miro = MiroApp()
feed = "TestData"
term = "monkey"
folder_path = os.path.join(os.getenv("PCF_TEST_HOME"),"Miro","TestData","WatchTest")
#1. add feed
miro.add_watched_folder(reg, folder_path)
if reg.s.exists("WatchTest"):
miro.log_result("678","test_721")
#2. search
miro.tab_search(reg, term)
miro.new_search_feed(reg, term,radio="Podcast",source=feed,watched=True)
#Remove Watched Folder
miro.open_prefs(reg)
prefs = PreferencesPanel()
folder_tab = prefs.open_tab("Folders")
folder_tab.remove_watched_folder("ArtTest")
folder_tab.close_prefs()
示例3: setUp
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import add_watched_folder [as 别名]
def setUp(self):
""" All playlist tests require data. Going to add feed and watched folder at the start of the subgroup.
"""
self.verificationErrors = []
miro = MiroApp()
print "starting test: ",self.shortDescription()
myLib.config.set_image_dirs()
miro.quit_miro()
myLib.config.set_def_db_and_prefs()
miro.restart_miro()
time.sleep(10)
reg = MiroRegions()
miro = MiroApp()
feed = "TestData"
folder_path = os.path.join(os.getenv("PCF_TEST_HOME"),"Miro","TestData")
miro.add_watched_folder(reg, folder_path)
示例4: test_653
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import add_watched_folder [as 别名]
def test_653(self):
"""http://litmus.pculture.org/show_test.cgi?id=653 edit album art
1. add watched folder
2. Edit artwork for 1 item
3. Edit artwork for multiple items
4. Cleanup
"""
reg = MiroRegions()
miro = MiroApp()
time.sleep(5)
folder_path = os.path.join(os.getenv("PCF_TEST_HOME"),"Miro","TestData","ArtTest")
title = "Pancakes"
title2 = "summer"
title3="deerhunter"
#1. add watched folder
miro.add_watched_folder(reg, folder_path)
if reg.s.exists("ArtTest"):
click(reg.s.getLastMatch())
miro.log_result("157","test_653")
art_file = os.path.join(os.getenv("PCF_TEST_HOME"),"Miro","TestData","album_art1.jpg")
#add feed and download flip face item
miro.toggle_normal(reg)
miro.tab_search(reg, title)
try:
reg.m.find(title)
reg.m.click(title)
reg.mtb.click("tabsearch_clear.png")
miro.edit_item_metadata(reg, meta_field="art",meta_value=art_file)
## Verify new image here:
reg.m.find(Pattern("album_art1.png"))
finally:
miro.open_prefs(reg)
prefs = PreferencesPanel()
folder_tab = prefs.open_tab("Folders")
folder_tab.remove_watched_folder("ArtTest")
folder_tab.close_prefs()