Beispiel #1
0
 def test_series_data_wrong_key(self):
     with pytest.raises(KeyError):
         data.mock_get_data("series", **self.wrong_key)["dasDachs"]
Beispiel #2
0
 def test_prev_episode_data_change(self):
     assert data.mock_get_data("previousepisode",
                               **self.change)["name"] == None
Beispiel #3
0
 def test_next_episode_data_change(self):
     assert data.mock_get_data("nextepisode", **self.change)["name"] == None
Beispiel #4
0
 def test_data_for_nextepisode(self):
     assert data.mock_get_data("nextepisode") == data.NEXT
Beispiel #5
0
 def test_series_data_change(self):
     assert data.mock_get_data("series", **self.change)["name"] == None
Beispiel #6
0
 def test_data_for_series(self):
     assert data.mock_get_data("series") == data.SERIES
Beispiel #7
0
 def test_data_for_previousepisode(self):
     assert data.mock_get_data("previousepisode") == data.PREV
Beispiel #8
0
 def test_series_data_wrong_key(self):
     with pytest.raises(KeyError):
         data.mock_get_data("series", **self.wrong_key)["dasDachs"]
Beispiel #9
0
 def test_next_episode_data_wrong_key(self):
     with pytest.raises(KeyError):
         data.mock_get_data("nextepisode", **self.wrong_key)["dasDachs"]
Beispiel #10
0
 def test_prev_episode_data_change(self):
     assert data.mock_get_data("previousepisode", **self.change)["name"] == None
Beispiel #11
0
 def test_next_episode_data_change(self):
     assert data.mock_get_data("nextepisode", **self.change)["name"] == None
Beispiel #12
0
 def test_series_data_change(self):
     assert data.mock_get_data("series", **self.change)["name"] == None
Beispiel #13
0
 def test_data_for_nextepisode(self):
     assert data.mock_get_data("nextepisode") == data.NEXT
Beispiel #14
0
 def test_data_for_previousepisode(self):
     assert data.mock_get_data("previousepisode") == data.PREV
Beispiel #15
0
 def test_next_episode_data_wrong_key(self):
     with pytest.raises(KeyError):
         data.mock_get_data("nextepisode", **self.wrong_key)["dasDachs"]
Beispiel #16
0
 def test_data_for_series(self):
     assert data.mock_get_data("series") == data.SERIES
Beispiel #17
0
 def mockreturn(name):
     return mock_get_data("series")
Beispiel #18
0
 def mockreturn(name):
     return mock_get_data("series")