Skip to content

Commit

Permalink
Update hiscores_test.py
Browse files Browse the repository at this point in the history
Adjusted test to account for issues as show in issue# 46
  • Loading branch information
Coffee-fueled-deadlines committed Nov 10, 2023
1 parent 486fe01 commit 31638fd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions OSRSBytes/tests/hiscores_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,14 @@ def test(verbose = True):

for skill in boss_user.getSkillsGenerator():
try:
assert boss_user.skill(skill, "rank"), "Failed"
assert boss_user.skill(skill, "rank"), "Failed"
# Assert that value, when converted to Int, is Int
assert type(int(boss_user.skill(skill, "rank"))) == int, "Failed"
assert boss_user.skill(skill, "level"), "Failed"
# Assert that value, when converted to Int, is Int
assert type(int(boss_user.skill(skill, "level"))) == int, "Failed"
# Assert that value, when converted to Int, is Int
assert type(int(boss_user.skill(skill, "experience"))) == int, "Failed"
except:
failed_tests.append(skill)
if (verbose):
Expand Down Expand Up @@ -71,4 +77,4 @@ def test(verbose = True):
if len(failed_tests) == 0:
return True
else:
return False
return False

0 comments on commit 31638fd

Please sign in to comment.