コード例 #1
0
ファイル: get_podcast_data.py プロジェクト: becm/hoerapi.py
def get_podcast_data(podcast):
    return parser_object(PodcastData, call_api('getPodcastData', { 'podcast': podcast }))
コード例 #2
0
def get_podcast_data(podcast):
    return parser_object(PodcastData,
                         call_api('getPodcastData', {'podcast': podcast}))
コード例 #3
0
ファイル: test_parsers.py プロジェクト: becm/hoerapi.py
 def test_missing_attribute(self):
     with pytest.raises(MissingAttributeError):
         parser_object(MockSingle, {})
コード例 #4
0
ファイル: test_parsers.py プロジェクト: becm/hoerapi.py
 def test_call_clazz(self):
     global mockCalled; mockCalled = 0
     parser_object(MockCounter, [{}, {}])
     assert mockCalled == 1
コード例 #5
0
ファイル: test_parsers.py プロジェクト: hoersuppe/hoerapi.py
 def test_missing_attribute(self):
     with pytest.raises(MissingAttributeError):
         parser_object(MockSingle, {})
コード例 #6
0
ファイル: test_parsers.py プロジェクト: hoersuppe/hoerapi.py
 def test_call_clazz(self):
     global mockCalled
     mockCalled = 0
     parser_object(MockCounter, [{}, {}])
     assert mockCalled == 1