@@ -47,10 +47,10 @@ def test_game_name_with_colon(self):
47
47
self .assertEqual ("Half-Life: Opposing Force" , best_result .game_name )
48
48
49
49
def test_game_name (self ):
50
- results = HowLongToBeat ().search ("A way out " )
50
+ results = HowLongToBeat ().search ("Crysis Warhead " )
51
51
self .assertNotEqual (None , results , "Search Results are None" )
52
52
best_result = self .getMaxSimilarityElement (results )
53
- self .assertEqual ("A Way Out " , best_result .game_name )
53
+ self .assertEqual ("Crysis Warhead " , best_result .game_name )
54
54
self .assertEqual ("Main Story" , best_result .gameplay_main_label )
55
55
self .assertEqual ("Main + Extra" , best_result .gameplay_main_extra_label )
56
56
self .assertEqual ("Completionist" , best_result .gameplay_completionist_label )
@@ -73,13 +73,13 @@ def test_game_with_no_all_values(self):
73
73
self .assertEqual ("Battlefield 2142" , best_result .game_name )
74
74
self .assertEqual (None , best_result .gameplay_main_label )
75
75
self .assertEqual ("Co-Op" , best_result .gameplay_main_extra_label )
76
+ self .assertEqual ("Hours" , best_result .gameplay_main_extra_unit )
77
+ self .assertAlmostEqual (17 , TestNormalRequest .getSimpleNumber (best_result .gameplay_main_extra ), delta = 5 )
76
78
self .assertEqual ("Vs." , best_result .gameplay_completionist_label )
77
- self .assertAlmostEqual (80 , TestNormalRequest .getSimpleNumber (best_result .gameplay_completionist ), delta = 5 )
79
+ self .assertAlmostEqual (65 , TestNormalRequest .getSimpleNumber (best_result .gameplay_completionist ), delta = 5 )
78
80
self .assertEqual ("Hours" , best_result .gameplay_completionist_unit )
79
81
self .assertEqual (None , best_result .gameplay_main_unit )
80
- self .assertEqual (None , best_result .gameplay_main_extra_unit )
81
82
self .assertEqual (- 1 , TestNormalRequest .getSimpleNumber (best_result .gameplay_main ))
82
- self .assertEqual (- 1 , TestNormalRequest .getSimpleNumber (best_result .gameplay_main_extra ))
83
83
84
84
def test_game_default_dlc_search (self ):
85
85
results = HowLongToBeat ().search ("Hearts of Stone" )
@@ -102,9 +102,9 @@ def test_game_isolate_dlc_search(self):
102
102
self .assertEqual ("The Witcher 3: Wild Hunt - Hearts of Stone" , best_result .game_name )
103
103
104
104
def test_game_really_isolate_dlc_search (self ):
105
- results = HowLongToBeat ().search ("The Witcher 3 " , SearchModifiers .ISOLATE_DLC )
105
+ results = HowLongToBeat (0 ).search ("Skyrim " , SearchModifiers .ISOLATE_DLC )
106
106
self .assertNotEqual (None , results , "Search Results are None" )
107
- self .assertEqual (2 , len (results ))
107
+ self .assertEqual (3 , len (results ))
108
108
109
109
def test_game_case_sensitive (self ):
110
110
results_standard = HowLongToBeat (0 ).search ("RED HOT VENGEANCE" )
0 commit comments