def test_tvmaze_show_single_search__success(): result = tvmaze_show_single_search(META["series"]) assert result for expected_show_key in EXPECTED_SHOW_KEYS: assert expected_show_key in result assert result["id"] == META["id_tvmaze"] assert result["name"] == META["series"]
def test_tvmaze_show_single_search__no_hits(): with pytest.raises(MnamerNotFoundException): tvmaze_show_single_search(JUNK_TEXT)