test/test_plugin_wikipedia.rb in serienrenamer-0.0.11 vs test/test_plugin_wikipedia.rb in serienrenamer-0.0.12
- old
+ new
@@ -80,24 +80,10 @@
assert_equal("Reptilien im Paradies", seasons[1][1])
assert_equal("Doppelgänger", seasons[1][6])
assert_equal("Unruhiges Blut", seasons[1][9])
- data = wiki.get("Royal Pains")
- seasons = Plugin::Wikipedia.parse_inarticle_episodelist_page_data(data)
-
- assert_equal("Auch Reiche sind nur Menschen", seasons[1][1])
- assert_equal("Krank vor Liebe", seasons[2][2])
- assert_equal("Mich trifft der Blitz", seasons[2][16])
-
- data = wiki.get("Flashpoint – Das Spezialkommando")
- seasons = Plugin::Wikipedia.parse_inarticle_episodelist_page_data(data)
-
- assert_equal("Skorpion", seasons[1][1])
- assert_equal("Die Festung", seasons[2][2])
- assert_equal("Der Beschützer", seasons[2][16])
-
data = wiki.get("Dr. Dani Santino – Spiel des Lebens")
seasons = Plugin::Wikipedia.parse_inarticle_episodelist_page_data(data)
assert_equal("Touchdown", seasons[1][1])
assert_equal("Zickenkrieg", seasons[1][7])
@@ -113,15 +99,10 @@
def test_episode_information_generation
VCR.use_cassette("wiki_#{method_name}") do
- flpo = Serienrenamer::Episode.new(@@files['flpo'])
- data = Plugin::Wikipedia.generate_episode_information(flpo)[0]
- flpo.add_episode_information(data, false) if data
- assert_equal("S04E04 - Getrübte Erinnerungen.avi", flpo.to_s)
-
two = Serienrenamer::Episode.new(@@files['two'])
data = Plugin::Wikipedia.generate_episode_information(two)[0]
two.add_episode_information(data, false) if data
assert_equal("S09E07 - Das Tagebuch.avi", two.to_s)
@@ -185,10 +166,10 @@
VCR.use_cassette("wiki_#{method_name}") do
wiki = MediaWiki::Gateway.new('http://de.wikipedia.org/w/api.php')
assert_equal(false, Plugin::Wikipedia.contains_inarticle_episode_list?(wiki.get("Bones")))
assert_equal(true, Plugin::Wikipedia.contains_inarticle_episode_list?(wiki.get("The Glades")))
- assert_equal(true, Plugin::Wikipedia.contains_inarticle_episode_list?(wiki.get("Royal Pains")))
+ assert_equal(false, Plugin::Wikipedia.contains_inarticle_episode_list?(wiki.get("Royal Pains")))
end
end
end