示例#1
0
def update_nba_sidebar():
    """Task to update the nba sidebar.

    """
    #Create the the sidebar text using nba_mod
    sidebar_text = nba_mod.create_sidebar()
    #Update the sidebar of /r/NBA
    nba_mod.update_sidebar(sidebar_text,'NBA')
示例#2
0
文件: tasks.py 项目: tanayg/nba-mod
def update_nba_sidebar():
    """Task to update the nba sidebar.

    """
    #Create the the sidebar text using nba_mod
    sidebar_text = nba_mod.create_sidebar()
    #Update the sidebar of /r/NBA
    nba_mod.update_sidebar(sidebar_text, 'NBA')
示例#3
0
 def test_create_sidebar(self):
 	nba_mod.create_sidebar()
示例#4
0
 def test_update_sidebar(self):
 	sidebar_text = nba_mod.create_sidebar()
 	nba_mod.update_sidebar(sidebar_text,"nba")