Skip to content

Commit d21c48b

Browse files
authored
Merge pull request #23 from Galarzaa90/dev
v2.4.0
2 parents 8eeb223 + 5c79f90 commit d21c48b

File tree

7 files changed

+154
-14
lines changed

7 files changed

+154
-14
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+
.. _v2.4.0:
10+
2.4.0 (2019-11-20)
11+
==================
12+
- Added support for multiple houses per character. Accessible on ``Character.houses`` field.
13+
- ``Character.house`` is now deprecated. It will contain the character's first house or ``None``.
14+
915
.. _v2.3.4:
1016
2.3.4 (2019-11-14)
1117
==================

tests/resources/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ deaths by summons, players, assisted deaths, etcetera.
1111
- [tibiacom_not_found.txt](character/tibiacom_not_found.txt) - A character not found page.
1212
- [tibiacom_title_badges.txt](character/tibiacom_title_badges.txt) - A character with unlocked titles and badges.
1313
- [tibiacom_no_badges_selected.txt](character/tibiacom_no_badges_selected.txt) - A character with no selected badges.
14+
- [tibiacom_multiple_houses.txt](character/tibiacom_multiple_houses.txt) - A character with two houses.
1415
- [tibiadata.json](character/tibiadata.json) - A character on TibiaData, also showing Pvp deaths with assists.
1516
- [tibiadata_deleted.json](character/tibiadata_deleted.json) - A character scheduled for deletion on TibiaData.
1617
- [tibiadata_not_found.json](character/tibiadata_not_found.json) - The response of a character not found on TibiaData.
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
<div class="BoxContent" style="background-image:url(https://static.tibia.com/images/global/content/scroll.gif);">
2+
<table border="0" cellspacing="1" cellpadding="4" width="100%"><tr bgcolor=#505050><td colspan=2 class=white><b>Character Information</b></td></tr><tr bgcolor=#F1E0C6><td width=20%>Name:</td><td>Sayuri Nowan <div style="float: right"></div></td></tr><tr bgcolor=#D4C0A1><td>Title:</td><td>Silencer (16 titles unlocked)</td></tr><tr bgcolor=#F1E0C6><td>Sex:</td><td>female</td></tr><tr bgcolor=#D4C0A1><td>Vocation:</td><td>Elder Druid</td></tr><tr bgcolor=#F1E0C6><td>Level:</td><td>535</td></tr><tr bgcolor=#D4C0A1><td><nobr>Achievement Points:</nobr></td><td>425</td></tr><tr bgcolor=#F1E0C6><td>World:</td><td>Menera</td></tr><tr bgcolor=#D4C0A1><td>Residence:</td><td>Thais</td></tr><tr bgcolor=#F1E0C6><td>Married To:</td><td><a href="https://www.tibia.com/community/?subtopic=characters&name=Comandante+Dako">Comandante&#160;Dako</a></td></tr><tr bgcolor=#D4C0A1><td>House:</td><td> <a href="https://www.tibia.com/community/?subtopic=houses&amp;page=view&amp;world=Menera&amp;town=Edron&amp;houseid=54025&amp;character=Sayuri+Nowan&amp;action=characters">Cormaya 10</a> (Edron) is paid until Dec&#160;06&#160;2019</td></tr><tr bgcolor=#F1E0C6><td>House:</td><td> <a href="https://www.tibia.com/community/?subtopic=houses&amp;page=view&amp;world=Menera&amp;town=Rathleton&amp;houseid=19009&amp;character=Sayuri+Nowan&amp;action=characters">Old Heritage Estate</a> (Rathleton) is paid until Dec&#160;04&#160;2019</td></tr><tr bgcolor=#D4C0A1><td>Guild&#160;Membership:</td><td>Baiabaia of the <a href="https://www.tibia.com/community/?subtopic=guilds&page=view&GuildName=Baia+Baia&amp;character=Sayuri+Nowan&amp;action=characters">Baia&#160;Baia</a></td></tr><tr bgcolor=#F1E0C6><td>Last Login:</td><td>Nov&#160;19&#160;2019,&#160;23:08:03&#160;CET</td></tr><tr bgcolor=#D4C0A1><td valign=top>Comment:</td><td>TibiaLottery-848B3 </td></tr><tr bgcolor=#F1E0C6><td>Account&#160;Status:</td><td>Premium Account</td></tr></table>
3+
<br /><br /><table border="0" cellspacing="1" cellpadding="4" width="100%"><tr bgcolor="#505050"><td colspan="2" class="white"><b>Account Achievements</b></td></tr><tr bgcolor="#F1E0C6"><td><img style="width:18px;height:18px;margin-right:2px;" src="https://static.tibia.com/images/global/general/achievement-grade-symbol.gif" alt="Tibia Achievement" /><img style="width:18px;height:18px;margin-right:2px;" src="https://static.tibia.com/images/global/general/achievement-grade-symbol.gif" alt="Tibia Achievement" /></td><td width="80%">Exemplary Citizen</td></tr><tr bgcolor="#D4C0A1"><td><img style="width:18px;height:18px;margin-right:2px;" src="https://static.tibia.com/images/global/general/achievement-grade-symbol.gif" alt="Tibia Achievement" /><img style="width:18px;height:18px;margin-right:2px;" src="https://static.tibia.com/images/global/general/achievement-grade-symbol.gif" alt="Tibia Achievement" /></td><td width="80%">Ruthless</td></tr><tr bgcolor="#F1E0C6"><td><img style="width:18px;height:18px;margin-right:2px;" src="https://static.tibia.com/images/global/general/achievement-grade-symbol.gif" alt="Tibia Achievement" /><img style="width:18px;height:18px;margin-right:2px;" src="https://static.tibia.com/images/global/general/achievement-grade-symbol.gif" alt="Tibia Achievement" /></td><td width="80%">True Lightbearer<img style="position:absolute;width:44px;height:20px;margin-left:12px;margin-top:-2px;right:35px" src="https://static.tibia.com/images/global/general/achievement-secret-symbol.gif" alt="Tibia Secret Achievement" /></td></tr><tr bgcolor="#D4C0A1"><td><img style="width:18px;height:18px;margin-right:2px;" src="https://static.tibia.com/images/global/general/achievement-grade-symbol.gif" alt="Tibia Achievement" /><img style="width:18px;height:18px;margin-right:2px;" src="https://static.tibia.com/images/global/general/achievement-grade-symbol.gif" alt="Tibia Achievement" /></td><td width="80%">Turncoat<img style="position:absolute;width:44px;height:20px;margin-left:12px;margin-top:-2px;right:35px" src="https://static.tibia.com/images/global/general/achievement-secret-symbol.gif" alt="Tibia Secret Achievement" /></td></tr></table><br /><br /><table border="0" cellspacing="1" cellpadding="4" width="100%"><tr bgcolor="#505050"><td colspan="2" class="white"><b>Account Information</b></td></tr><tr bgcolor="#F1E0C6"><td width="20%">Loyalty Title:</td><td>Warrior of Tibia</td></tr><tr bgcolor="#D4C0A1"><td width="20%">Created:</td><td>Mar&#160;21&#160;2006,&#160;08:07:09&#160;CET</td></tr></table><br /><br /><TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR=#505050><TD COLSPAN=4 CLASS=white><B>Characters</B></TD></TR><TR BGCOLOR=#D4C0A1><TD><B>Name</B></TD><TD><B>World</B></TD><TD><B>Status</B></TD><TD><B>&#160;</B></TD></TR><TR BGCOLOR=#F1E0C6><TD WIDTH=20%><NOBR>1.&#160;Holy&#160;Henrietta</NOBR></TD><TD WIDTH=10%><NOBR>Astera</NOBR></TD><TD WIDTH=70%><IMG SRC"=https://static.tibia.com/images/global/general/blank.gif" WIDTH=1 HEIGHT=1 BORDER=0><BR></TD><TD><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION=https://www.tibia.com/community/?subtopic=characters METHOD=post><TR><TD>
4+
<INPUT TYPE=hidden NAME=name VALUE="Holy Henrietta">
5+
<INPUT TYPE=image NAME="View Holy Henrietta" ALT="View Holy Henrietta" SRC="https://static.tibia.com/images/global/buttons/sbutton_view.gif" BORDER=0 WIDTH=120 HEIGHT=18>
6+
</TD></TR></FORM></TABLE>
7+
</TD></TR><TR BGCOLOR=#D4C0A1><TD WIDTH=20%><NOBR>2.&#160;Jello&#160;Housekeeper</NOBR></TD><TD WIDTH=10%><NOBR>Astera</NOBR></TD><TD WIDTH=70%><IMG SRC"=https://static.tibia.com/images/global/general/blank.gif" WIDTH=1 HEIGHT=1 BORDER=0><BR></TD><TD><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION=https://www.tibia.com/community/?subtopic=characters METHOD=post><TR><TD>
8+
<INPUT TYPE=hidden NAME=name VALUE="Jello Housekeeper">
9+
<INPUT TYPE=image NAME="View Jello Housekeeper" ALT="View Jello Housekeeper" SRC="https://static.tibia.com/images/global/buttons/sbutton_view.gif" BORDER=0 WIDTH=120 HEIGHT=18>
10+
</TD></TR></FORM></TABLE>
11+
</TD></TR><TR BGCOLOR=#F1E0C6><TD WIDTH=20%><NOBR>3.&#160;Malunita</NOBR></TD><TD WIDTH=10%><NOBR>Astera</NOBR></TD><TD WIDTH=70%><IMG SRC"=https://static.tibia.com/images/global/general/blank.gif" WIDTH=1 HEIGHT=1 BORDER=0><BR></TD><TD><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION=https://www.tibia.com/community/?subtopic=characters METHOD=post><TR><TD>
12+
<INPUT TYPE=hidden NAME=name VALUE="Malunita">
13+
<INPUT TYPE=image NAME="View Malunita" ALT="View Malunita" SRC="https://static.tibia.com/images/global/buttons/sbutton_view.gif" BORDER=0 WIDTH=120 HEIGHT=18>
14+
</TD></TR></FORM></TABLE>
15+
</TD></TR><TR BGCOLOR=#D4C0A1><TD WIDTH=20%><NOBR>4.&#160;Miss&#160;Weasley</NOBR></TD><TD WIDTH=10%><NOBR>Astera</NOBR></TD><TD WIDTH=70%><IMG SRC"=https://static.tibia.com/images/global/general/blank.gif" WIDTH=1 HEIGHT=1 BORDER=0><BR></TD><TD><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION=https://www.tibia.com/community/?subtopic=characters METHOD=post><TR><TD>
16+
<INPUT TYPE=hidden NAME=name VALUE="Miss Weasley">
17+
<INPUT TYPE=image NAME="View Miss Weasley" ALT="View Miss Weasley" SRC="https://static.tibia.com/images/global/buttons/sbutton_view.gif" BORDER=0 WIDTH=120 HEIGHT=18>
18+
</TD></TR></FORM></TABLE>
19+
</TD></TR><TR BGCOLOR=#F1E0C6><TD WIDTH=20%><NOBR>5.&#160;Sa&#160;yu</NOBR></TD><TD WIDTH=10%><NOBR>Mitigera</NOBR></TD><TD WIDTH=70%><IMG SRC"=https://static.tibia.com/images/global/general/blank.gif" WIDTH=1 HEIGHT=1 BORDER=0><BR></TD><TD><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION=https://www.tibia.com/community/?subtopic=characters METHOD=post><TR><TD>
20+
<INPUT TYPE=hidden NAME=name VALUE="Sa yu">
21+
<INPUT TYPE=image NAME="View Sa yu" ALT="View Sa yu" SRC="https://static.tibia.com/images/global/buttons/sbutton_view.gif" BORDER=0 WIDTH=120 HEIGHT=18>
22+
</TD></TR></FORM></TABLE>
23+
</TD></TR><TR BGCOLOR=#D4C0A1><TD WIDTH=20%><NOBR>6.&#160;Santa&#160;Sayu</NOBR></TD><TD WIDTH=10%><NOBR>Garnera</NOBR></TD><TD WIDTH=70%><IMG SRC"=https://static.tibia.com/images/global/general/blank.gif" WIDTH=1 HEIGHT=1 BORDER=0><BR></TD><TD><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION=https://www.tibia.com/community/?subtopic=characters METHOD=post><TR><TD>
24+
<INPUT TYPE=hidden NAME=name VALUE="Santa Sayu">
25+
<INPUT TYPE=image NAME="View Santa Sayu" ALT="View Santa Sayu" SRC="https://static.tibia.com/images/global/buttons/sbutton_view.gif" BORDER=0 WIDTH=120 HEIGHT=18>
26+
</TD></TR></FORM></TABLE>
27+
</TD></TR><TR BGCOLOR=#F1E0C6><TD WIDTH=20%><NOBR>7.&#160;Sashuri</NOBR></TD><TD WIDTH=10%><NOBR>Zunera</NOBR></TD><TD WIDTH=70%><IMG SRC"=https://static.tibia.com/images/global/general/blank.gif" WIDTH=1 HEIGHT=1 BORDER=0><BR></TD><TD><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION=https://www.tibia.com/community/?subtopic=characters METHOD=post><TR><TD>
28+
<INPUT TYPE=hidden NAME=name VALUE="Sashuri">
29+
<INPUT TYPE=image NAME="View Sashuri" ALT="View Sashuri" SRC="https://static.tibia.com/images/global/buttons/sbutton_view.gif" BORDER=0 WIDTH=120 HEIGHT=18>
30+
</TD></TR></FORM></TABLE>
31+
</TD></TR><TR BGCOLOR=#D4C0A1><TD WIDTH=20%><NOBR>8.&#160;Sashurina</NOBR></TD><TD WIDTH=10%><NOBR>Tournament&#160;-&#160;restricted&#160;Store</NOBR></TD><TD WIDTH=70%><IMG SRC"=https://static.tibia.com/images/global/general/blank.gif" WIDTH=1 HEIGHT=1 BORDER=0><BR></TD><TD><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION=https://www.tibia.com/community/?subtopic=characters METHOD=post><TR><TD>
32+
<INPUT TYPE=hidden NAME=name VALUE="Sashurina">
33+
<INPUT TYPE=image NAME="View Sashurina" ALT="View Sashurina" SRC="https://static.tibia.com/images/global/buttons/sbutton_view.gif" BORDER=0 WIDTH=120 HEIGHT=18>
34+
</TD></TR></FORM></TABLE>
35+
</TD></TR><TR BGCOLOR=#F1E0C6><TD WIDTH=20%><NOBR>9.&#160;Sashurita</NOBR></TD><TD WIDTH=10%><NOBR>Tournament&#160;-&#160;regular</NOBR></TD><TD WIDTH=70%><IMG SRC"=https://static.tibia.com/images/global/general/blank.gif" WIDTH=1 HEIGHT=1 BORDER=0><BR></TD><TD><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION=https://www.tibia.com/community/?subtopic=characters METHOD=post><TR><TD>
36+
<INPUT TYPE=hidden NAME=name VALUE="Sashurita">
37+
<INPUT TYPE=image NAME="View Sashurita" ALT="View Sashurita" SRC="https://static.tibia.com/images/global/buttons/sbutton_view.gif" BORDER=0 WIDTH=120 HEIGHT=18>
38+
</TD></TR></FORM></TABLE>
39+
</TD></TR><TR BGCOLOR=#D4C0A1><TD WIDTH=20%><NOBR>10.&#160;Sayu&#160;con&#160;Hat</NOBR></TD><TD WIDTH=10%><NOBR>Jonera</NOBR></TD><TD WIDTH=70%><IMG SRC"=https://static.tibia.com/images/global/general/blank.gif" WIDTH=1 HEIGHT=1 BORDER=0><BR></TD><TD><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION=https://www.tibia.com/community/?subtopic=characters METHOD=post><TR><TD>
40+
<INPUT TYPE=hidden NAME=name VALUE="Sayu con Hat">
41+
<INPUT TYPE=image NAME="View Sayu con Hat" ALT="View Sayu con Hat" SRC="https://static.tibia.com/images/global/buttons/sbutton_view.gif" BORDER=0 WIDTH=120 HEIGHT=18>
42+
</TD></TR></FORM></TABLE>
43+
</TD></TR><TR BGCOLOR=#F1E0C6><TD WIDTH=20%><NOBR>11.&#160;Sayu&#160;en&#160;Gladera</NOBR></TD><TD WIDTH=10%><NOBR>Gladera</NOBR></TD><TD WIDTH=70%>deleted</TD><TD><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION=https://www.tibia.com/community/?subtopic=characters METHOD=post><TR><TD>
44+
<INPUT TYPE=hidden NAME=name VALUE="Sayu en Gladera">
45+
<INPUT TYPE=image NAME="View Sayu en Gladera" ALT="View Sayu en Gladera" SRC="https://static.tibia.com/images/global/buttons/sbutton_view.gif" BORDER=0 WIDTH=120 HEIGHT=18>
46+
</TD></TR></FORM></TABLE>
47+
</TD></TR><TR BGCOLOR=#D4C0A1><TD WIDTH=20%><NOBR>12.&#160;Sayu&#160;Gahe</NOBR></TD><TD WIDTH=10%><NOBR>Funera</NOBR></TD><TD WIDTH=70%><IMG SRC"=https://static.tibia.com/images/global/general/blank.gif" WIDTH=1 HEIGHT=1 BORDER=0><BR></TD><TD><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION=https://www.tibia.com/community/?subtopic=characters METHOD=post><TR><TD>
48+
<INPUT TYPE=hidden NAME=name VALUE="Sayu Gahe">
49+
<INPUT TYPE=image NAME="View Sayu Gahe" ALT="View Sayu Gahe" SRC="https://static.tibia.com/images/global/buttons/sbutton_view.gif" BORDER=0 WIDTH=120 HEIGHT=18>
50+
</TD></TR></FORM></TABLE>
51+
</TD></TR><TR BGCOLOR=#F1E0C6><TD WIDTH=20%><NOBR>13.&#160;Sayu&#160;in&#160;Rook</NOBR></TD><TD WIDTH=10%><NOBR>Astera</NOBR></TD><TD WIDTH=70%><IMG SRC"=https://static.tibia.com/images/global/general/blank.gif" WIDTH=1 HEIGHT=1 BORDER=0><BR></TD><TD><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION=https://www.tibia.com/community/?subtopic=characters METHOD=post><TR><TD>
52+
<INPUT TYPE=hidden NAME=name VALUE="Sayu in Rook">
53+
<INPUT TYPE=image NAME="View Sayu in Rook" ALT="View Sayu in Rook" SRC="https://static.tibia.com/images/global/buttons/sbutton_view.gif" BORDER=0 WIDTH=120 HEIGHT=18>
54+
</TD></TR></FORM></TABLE>
55+
</TD></TR><TR BGCOLOR=#D4C0A1><TD WIDTH=20%><NOBR>14.&#160;Sayu&#160;ri</NOBR></TD><TD WIDTH=10%><NOBR>Secura</NOBR></TD><TD WIDTH=70%><IMG SRC"=https://static.tibia.com/images/global/general/blank.gif" WIDTH=1 HEIGHT=1 BORDER=0><BR></TD><TD><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION=https://www.tibia.com/community/?subtopic=characters METHOD=post><TR><TD>
56+
<INPUT TYPE=hidden NAME=name VALUE="Sayu ri">
57+
<INPUT TYPE=image NAME="View Sayu ri" ALT="View Sayu ri" SRC="https://static.tibia.com/images/global/buttons/sbutton_view.gif" BORDER=0 WIDTH=120 HEIGHT=18>
58+
</TD></TR></FORM></TABLE>
59+
</TD></TR><TR BGCOLOR=#F1E0C6><TD WIDTH=20%><NOBR>15.&#160;Sayunabra</NOBR></TD><TD WIDTH=10%><NOBR>Inabra</NOBR></TD><TD WIDTH=70%>deleted</TD><TD><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION=https://www.tibia.com/community/?subtopic=characters METHOD=post><TR><TD>
60+
<INPUT TYPE=hidden NAME=name VALUE="Sayunabra">
61+
<INPUT TYPE=image NAME="View Sayunabra" ALT="View Sayunabra" SRC="https://static.tibia.com/images/global/buttons/sbutton_view.gif" BORDER=0 WIDTH=120 HEIGHT=18>
62+
</TD></TR></FORM></TABLE>
63+
</TD></TR><TR BGCOLOR=#D4C0A1><TD WIDTH=20%><NOBR>16.&#160;Sayuri&#160;Nowan</NOBR> <img src='https://static.tibia.com/images//account/maincharacter.png' alt='(Main Character)' title='Main Character' /></TD><TD WIDTH=10%><NOBR>Menera</NOBR></TD><TD WIDTH=70%><IMG SRC"=https://static.tibia.com/images/global/general/blank.gif" WIDTH=1 HEIGHT=1 BORDER=0><BR></TD><TD><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION=https://www.tibia.com/community/?subtopic=characters METHOD=post><TR><TD>
64+
<INPUT TYPE=hidden NAME=name VALUE="Sayuri Nowan">
65+
<INPUT TYPE=image NAME="View Sayuri Nowan" ALT="View Sayuri Nowan" SRC="https://static.tibia.com/images/global/buttons/sbutton_view.gif" BORDER=0 WIDTH=120 HEIGHT=18>
66+
</TD></TR></FORM></TABLE>
67+
</TD></TR><TR BGCOLOR=#F1E0C6><TD WIDTH=20%><NOBR>17.&#160;Sayurina</NOBR></TD><TD WIDTH=10%><NOBR>Menera</NOBR></TD><TD WIDTH=70%><IMG SRC"=https://static.tibia.com/images/global/general/blank.gif" WIDTH=1 HEIGHT=1 BORDER=0><BR></TD><TD><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION=https://www.tibia.com/community/?subtopic=characters METHOD=post><TR><TD>
68+
<INPUT TYPE=hidden NAME=name VALUE="Sayurina">
69+
<INPUT TYPE=image NAME="View Sayurina" ALT="View Sayurina" SRC="https://static.tibia.com/images/global/buttons/sbutton_view.gif" BORDER=0 WIDTH=120 HEIGHT=18>
70+
</TD></TR></FORM></TABLE>
71+
</TD></TR><TR BGCOLOR=#D4C0A1><TD WIDTH=20%><NOBR>18.&#160;Sayurita&#160;en&#160;Gentebrita</NOBR></TD><TD WIDTH=10%><NOBR>Gentebra</NOBR></TD><TD WIDTH=70%><IMG SRC"=https://static.tibia.com/images/global/general/blank.gif" WIDTH=1 HEIGHT=1 BORDER=0><BR></TD><TD><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION=https://www.tibia.com/community/?subtopic=characters METHOD=post><TR><TD>
72+
<INPUT TYPE=hidden NAME=name VALUE="Sayurita en Gentebrita">
73+
<INPUT TYPE=image NAME="View Sayurita en Gentebrita" ALT="View Sayurita en Gentebrita" SRC="https://static.tibia.com/images/global/buttons/sbutton_view.gif" BORDER=0 WIDTH=120 HEIGHT=18>
74+
</TD></TR></FORM></TABLE>
75+
</TD></TR></TABLE>
76+
<br /><br /> <FORM ACTION="https://www.tibia.com/community/?subtopic=characters" METHOD=post>
77+
<TABLE WIDTH=100% BORDER=0 CELLSPACING=1 CELLPADDING=4>
78+
<TR><TD BGCOLOR="#505050" CLASS=white><B>Search Character</B></TD></TR>
79+
<TR><TD BGCOLOR="#D4C0A1"><TABLE BORDER=0 CELLPADDING=1><TR>
80+
<TD>Name:</TD><TD><INPUT NAME="name" VALUE="sayuri nowan" SIZE=29 MAXLENGTH=29></TD>
81+
<TD><INPUT TYPE=image NAME="Submit" SRC="https://static.tibia.com/images/global/buttons/sbutton_submit.gif" BORDER=0 WIDTH=120 HEIGHT=18></TD>
82+
</TR></TABLE></TD></TR>
83+
</TABLE>
84+
</FORM>
85+
</div>
86+
</div>
87+
</div>

tests/tests_character.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
FILE_CHARACTER_DEATHS_COMPLEX = "character/tibiacom_deaths_complex.txt"
1616
FILE_CHARACTER_TITLE_BADGES = "character/tibiacom_title_badges.txt"
1717
FILE_CHARACTER_NO_BADGES_SELECTED = "character/tibiacom_no_badges_selected.txt"
18+
FILE_CHARACTER_MULTIPLE_HOUSES = "character/tibiacom_multiple_houses.txt"
1819

1920
FILE_CHARACTER_TIBIADATA = "character/tibiadata.json"
2021
FILE_CHARACTER_TIBIADATA_UNHIDDEN = "character/tibiadata_unhidden.json"
@@ -128,6 +129,20 @@ def test_character_from_content_no_selected_badges(self):
128129
self.assertEqual(0, len(char.account_badges))
129130
self.assertEqual(0, len(char.former_names))
130131

132+
def test_character_from_content_multiple_houses(self):
133+
"""Testing parsing a character with multiple houses."""
134+
content = self._load_resource(FILE_CHARACTER_MULTIPLE_HOUSES)
135+
char = Character.from_content(content)
136+
self.assertEqual("Sayuri Nowan", char.name)
137+
self.assertEqual(2, len(char.houses))
138+
self.assertEqual(char.house.name, char.houses[0].name)
139+
first_house = char.houses[0]
140+
second_house = char.houses[1]
141+
self.assertEqual("Cormaya 10", first_house.name)
142+
self.assertEqual("Old Heritage Estate", second_house.name)
143+
self.assertEqual("Edron", first_house.town)
144+
self.assertEqual("Rathleton", second_house.town)
145+
131146
def test_character_from_content_unrelated(self):
132147
"""Testing parsing an unrelated tibia.com section"""
133148
content = self._load_resource(self.FILE_UNRELATED_SECTION)

tibiapy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from tibiapy.creature import *
1414
from tibiapy.client import *
1515

16-
__version__ = '2.3.4'
16+
__version__ = '2.4.0'
1717

1818
from logging import NullHandler
1919

0 commit comments

Comments
 (0)