Skip to content

Commit 4499830

Browse files
committed
Fixed tests
Changed alias with a game that will never have one (hopefully)
1 parent 6fc0d9b commit 4499830

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

howlongtobeatpy/tests/test_async_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ async def test_game_alias_present(self):
117117

118118
@async_test
119119
async def test_game_alias_not_present(self):
120-
results = await HowLongToBeat(0).async_search("The Witcher 3: Wild Hunt")
120+
results = await HowLongToBeat(0).async_search("XCOM 2")
121121
self.assertNotEqual(None, results, "Search Results are None")
122122
self.assertNotEqual(0, len(results))
123123
best_element = max(results, key=lambda element: element.similarity)

howlongtobeatpy/tests/test_normal_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def test_game_alias_present(self):
123123
self.assertEqual(best_element.game_alias, "God of War (PS4)")
124124

125125
def test_game_alias_not_present(self):
126-
results = HowLongToBeat(0).search("The Witcher 3: Wild Hunt")
126+
results = HowLongToBeat(0).search("XCOM 2")
127127
self.assertNotEqual(None, results, "Search Results are None")
128128
self.assertNotEqual(0, len(results))
129129
best_element = max(results, key=lambda element: element.similarity)

0 commit comments

Comments
 (0)