Skip to content

Commit bdf1e83

Browse files
committed
Added more test resources and cases, removed unused ones
- Detected two issues in houses having missing information
1 parent 1e7dd45 commit bdf1e83

36 files changed

+16331
-1452
lines changed

CHANGELOG.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ Changelog
66
Due to this library relying on external content, older versions are not guaranteed to work.
77
Try to always use the latest version.
88

9+
.. v6.0.2
10+
6.0.2 (Unreleased)
11+
==================
12+
- Fixed transfer recipient not being set in houses.
13+
- Fixed highest bid and time left not being set in houses in the houses section.
14+
915
.. v6.0.1
1016
1117
6.0.1 (2023-08-25)

tests/resources/README.md

Lines changed: 36 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ trying to cover as many scenarios possible, to be used in unit tests.
2121
- [characterScheduledForDeletion.txt](character/characterScheduledForDeletion.txt) - A character scheduled for deletion.
2222
- [characterWithComplexDeaths.txt](character/characterWithComplexDeaths.txt) - A character with many types of deaths, such as deaths by summons, players, assisted deaths, etcetera.
2323
- [characterWithFormerNames.txt](character/characterWithFormerNames.txt) - A character with former names.
24+
- [characterWithFormerWorld.txt](character/characterWithFormerWorld.txt) - A character with a former world.
2425
- [characterWithMultipleHouses.txt](character/characterWithMultipleHouses.txt) - A character with two houses.
2526
- [characterWithNoBadgesSelected.txt](character/characterWithNoBadgesSelected.txt) - A character with no selected badges.
2627
- [characterWithSpecialPosition.txt](character/characterWithSpecialPosition.txt) - A character with a special position.
@@ -66,6 +67,10 @@ trying to cover as many scenarios possible, to be used in unit tests.
6667
- [forumBoardInvalidPage.txt](forumBoard/forumBoardInvalidPage.txt) - A forum board on a page out of range.
6768
- [forumBoardNotFound.txt](forumBoard/forumBoardNotFound.txt) - The page shown for a board that doesn't exist.
6869
- [forumBoardWithGoldenFrame.txt](forumBoard/forumBoardWithGoldenFrame.txt) - A forum board with golden frames on some posts.
70+
- [forumBoardWithThreadByDeletedChar.txt](forumBoard/forumBoardWithThreadByDeletedChar.txt) - A forum board with a thread started by a deleted char.
71+
- [forumBoardWithThreadByTradedChar.txt](forumBoard/forumBoardWithThreadByTradedChar.txt) - A forum board with a thread started by a traded char.
72+
- [forumBoardWithThreadWithLastPostByDeletedChar.txt](forumBoard/forumBoardWithThreadWithLastPostByDeletedChar.txt) - A forum board with a thread with a last post by a deleted char.
73+
- [forumBoardWithThreadWithLastPostByTradedChar.txt](forumBoard/forumBoardWithThreadWithLastPostByTradedChar.txt) - A forum board with a thread with a last post by a traded char.
6974

7075
## Forum Section
7176

@@ -78,6 +83,11 @@ trying to cover as many scenarios possible, to be used in unit tests.
7883
- [forumThread.txt](forumThread/forumThread.txt) - A forum thread.
7984
- [forumThreadInvalidPage.txt](forumThread/forumThreadInvalidPage.txt) - A forum thread on a page out of range.
8085
- [forumThreadNotFound.txt](forumThread/forumThreadNotFound.txt) - The page for forum thread that doesn't exist.
86+
- [forumThreadWithEditedPost.txt](forumThread/forumThreadWithEditedPost.txt) - A forum thread containing an edited post.
87+
- [forumThreadWithGoldenFrame.txt](forumThread/forumThreadWithGoldenFrame.txt) - A forum thread with a golden frame around it.
88+
- [forumThreadWithPostByDeletedChar.txt](forumThread/forumThreadWithPostByDeletedChar.txt) - A forum thread containing a post by a deleted character.
89+
- [forumThreadWithPostByTradedChar.txt](forumThread/forumThreadWithPostByTradedChar.txt) - A forum thread containing a post by a traded character.
90+
- [forumThreadWithPostWithGoldenFrame.txt](forumThread/forumThreadWithPostWithGoldenFrame.txt) - A forum thread containing a post with a golden frame around it.
8191

8292
## Guild
8393

@@ -95,41 +105,41 @@ trying to cover as many scenarios possible, to be used in unit tests.
95105

96106
## Guild Wars
97107

108+
- [guildWarActiveAndHistory.txt](guildWars/guildWarActiveAndHistory.txt) - A guild with an active war and two previous wars.
98109
- [guildWarEmpty.txt](guildWars/guildWarEmpty.txt) - A guild with no active wars and no war history.
99110
- [guildWarUnactiveAndHistory.txt](guildWars/guildWarUnactiveAndHistory.txt) - A guild with no active wars and a previous war (enemy disbanded).
100-
- [guildWarActiveAndHistory.txt](guildWars/guildWarActiveAndHistory.txt) - A guild with an active war and two previous wars.
101111

102112
## Highscores
103113

104114
- [highscores.txt](highscores/highscores.txt) - The content of a correct highscore's page.
105115
- [highscoresBattleEyePvpFilters.txt](highscores/highscoresBattleEyePvpFilters.txt) - The content of the highscores page using BattlEye and PvP filters.
106-
- [highscoresEmpty.txt](highscores/highscoresEmpty.txt) - The content of the highscores page of a nonexistent world.
107116
- [highscoresExperience.txt](highscores/highscoresExperience.txt) - The content of an experience highscores page.
117+
- [highscoresGlobal.txt](highscores/highscoresGlobal.txt) - The content of the highscores for all worlds.
108118
- [highscoresLoyalty.txt](highscores/highscoresLoyalty.txt) - The content of a loyalty highscores page.
109-
- [highscoresNoResults.txt](highscores/highscoresNoResults.txt) - The content of the highscores page of a new world (no results shown).
110-
_OUTDATED_
119+
- [highscoresNoResults.txt](highscores/highscoresNoResults.txt) - The content of the highscores page with no results.
120+
- [highscoresNotFound.txt](highscores/highscoresNotFound.txt) - The content of the highscores page of a nonexistent world.
111121

112122
## House
113123

114-
- [houseRented.txt](house/houseRented.txt) - The content of a house's page
115-
- [houseStatusNoBids.txt](house/houseStatusNoBids.txt) - The status string of a auction house with no bids.
116-
- [houseStatusRented.txt](house/houseStatusRented.txt) - The status string of a rented house.
117-
- [houseStatusTransferred.txt](house/houseStatusTransferred.txt) - The status string of a rented house that is set for transfer.
118-
- [houseStatusWithBids.txt](house/houseAuctionedWithBids.txt) - The status string of a auctioned house with bids.
124+
- [houseAuctionedWithBids.txt](house/houseAuctionedWithBids.txt) - A house on auction with bids.
125+
- [houseAuctionedWithoutBids.txt](house/houseAuctionedWithoutBids.txt) - A house on auction without any bids.
119126
- [houseBeforeMerge.txt](house/houseBeforeMerge.txt) - A house from a world scheduled to be merged.
120127
- [houseNotFound.txt](house/houseNotFound.txt) - The content of a page for a house not found.
128+
- [houseRented.txt](house/houseRented.txt) - The content of a house's page
129+
- [houseRentedAcceptedTransfer.txt](house/houseRentedAcceptedTransfer.txt) - A rented house that will be transferred and is alreacy accepted.
121130

122131
## Houses Section
123132

124133
- [housesSection.txt](housesSection/housesSection.txt) - The house list of a world.
125134
- [housesSectionBeforeMerge.txt](housesSection/housesSectionBeforeMerge.txt) - The houses section of a world that is scheduled to be merged.## Houses Section
126135
- [housesSectionEmpty.txt](housesSection/housesSectionEmpty.txt) - The house list of a world, showing no houses.
127136
- [housesSectionNotFound.txt](housesSection/housesSectionNotFound.txt) - The house list of a world or town that doesn't exist.
137+
- [housesSectionWithAuctionHouses.txt](housesSection/housesSectionNotFound.txt) - The house list containing houses on auction.
128138

129139
## Kill Statistics
130140

131-
- [killStatisticsWithResults.txt](killStatistics/killStatisticsWithResults.txt) - The content of a correct kill statistics' page.
132141
- [killStatisticsNotFound.txt](killStatistics/killStatisticsNotFound.txt) - The content of the kill statistics's page of a nonexistent world or a unselected world.
142+
- [killStatisticsWithResults.txt](killStatistics/killStatisticsWithResults.txt) - The content of a correct kill statistics' page.
133143

134144
## Leaderboard
135145

@@ -140,37 +150,41 @@ trying to cover as many scenarios possible, to be used in unit tests.
140150

141151
## News
142152

153+
- [newsFeaturedArticle.txt](news/newsFeaturedArticle.txt) - The content of a featured article.
154+
- [newsNotFound.txt](news/newsNotFound.txt) - The content of the page shown for an id that doesn't exist.
143155
- [newsPostWithDiscussionThread.txt](news/newsPostWithDiscussionThread.txt) - The content of a news post with a discussion thread.
144156
- [newsTicker.txt](news/newsTicker.txt) - The content of a news ticker.
145-
- [newsFeaturedArticle.txt](news/newsFeaturedArticle.txt) - The content of a featured article.
146157

147158
## News Archive
148159

149-
- [newsArchiveInitial.txt](newsArchive/newsArchiveInitial.txt) - The content of the news search page with results and default filters.
150-
- [newsArchiveWithFilters.txt](newsArchive/newsArchiveWithFilters.txt) - The content of the news search page with results using filters.
151160
- [newsArchiveEmpty.txt](newsArchive/newsArchiveEmpty.txt) - The content of the news search page with no results.
152161
- [newsArchiveError.txt](newsArchive/newsArchiveError.txt) - The content of the news search page with an error.
153-
154-
## Spells Section
155-
156-
- [spellsSectionDefault.txt](spellsSection/spellsSectionDefault.txt) - The spells section with all results (no filters used).
157-
- [spellsSectionEmpty.txt](spellsSection/spellsSectionEmpty.txt) - The spells section with empty results (due to filter combination).
162+
- [newsArchiveInitial.txt](newsArchive/newsArchiveInitial.txt) - The content of the news search page with results and default filters.
163+
- [newsArchiveWithFilters.txt](newsArchive/newsArchiveWithFilters.txt) - The content of the news search page with results using filters.
158164

159165
## Spell
160166

161167
- [spell.txt](spells/spell.txt) - A regular spell.
162-
- [spellMultilneDescription.txt](spells/spellMultilneDescription.txt) - A spell with a description of multiple lines.
163-
- [spellVariableMana.txt](spells/spellVariableMana.txt) - A spell with variable mana usage.
168+
- [spellMultilineDescription.txt](spells/spellMultilineDescription.txt) - A spell with a description of multiple lines.
164169
- [spellRevelationPerk.txt](spells/spellRevelationPerk.txt) - A spell obtained from a revelation perk.
170+
- [spellVariableMana.txt](spells/spellVariableMana.txt) - A spell with variable mana usage.
165171
- [spellWithRune.txt](spells/spellWithRune.txt) - A spell that produces a rune.
172+
- [spellWithSecondaryGroup.txt](spells/spellWithSecondaryGroup.txt) - A spell that has a secondary cooldown group.
173+
174+
## Spells Section
175+
176+
- [spellsSectionDefault.txt](spellsSection/spellsSectionDefault.txt) - The spells section with all results (no filters used).
177+
- [spellsSectionEmpty.txt](spellsSection/spellsSectionEmpty.txt) - The spells section with empty results (due to filter combination).
166178

167179
## World
168180

181+
- [worldExperimental.txt](world/worldExperimental.txt) - A experimental world.
182+
- [worldGreenBattlEye.txt](world/worldGreenBattlEye.txt) - A world that was initially protected by BattlEye.
183+
- [worldNoTitles.txt](world/worldNoTitles.txt) - A world without titles.
184+
- [worldNotFound.txt](world/worldNotFound.txt) - The page shown for a world that doesn't exist.
169185
- [worldOnline.txt](world/worldOnline.txt) - An online world on Tibia.com.
170186
- [worldUnprotected.txt](world/worldUnprotected.txt) - A world with no BattlEye protection.
171187
- [worldYellowBattlEye.txt](world/worldYellowBattlEye.txt) - A world that was not initially protected by BattlEye.
172-
- [worldNoTitles.txt](world/worldNoTitles.txt) - A world without titles.
173-
- [worldNotFound.txt](world/worldNotFound.txt) - The page shown for a world that doesn't exist.
174188

175189
## World Overview
176190

tests/resources/character/characterWithFormerWorld.txt

Lines changed: 815 additions & 0 deletions
Large diffs are not rendered by default.

tests/resources/forumBoard/forumBoardWithThreadByDeletedChar.txt

Lines changed: 831 additions & 0 deletions
Large diffs are not rendered by default.

tests/resources/forumBoard/forumBoardWithThreadByTradedChar.txt

Lines changed: 831 additions & 0 deletions
Large diffs are not rendered by default.

tests/resources/forumBoard/forumBoardWithThreadWithLastPostByDeletedChar.txt

Lines changed: 831 additions & 0 deletions
Large diffs are not rendered by default.

tests/resources/forumBoard/forumBoardWithThreadWithLastPostByTradedChar.txt

Lines changed: 831 additions & 0 deletions
Large diffs are not rendered by default.

tests/resources/forumThread/forumThreadWithEditedPost.txt

Lines changed: 957 additions & 0 deletions
Large diffs are not rendered by default.

tests/resources/forumThread/forumThreadWithGoldenFrame.txt

Lines changed: 975 additions & 0 deletions
Large diffs are not rendered by default.

tests/resources/forumThread/forumThreadWithPostByDeletedChar.txt

Lines changed: 1068 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)