Closed jackbrown1993 closed 11 months ago
Check the above workflow:
=========================== short test summary info ============================
FAILED OSRSBytes/tests/hiscores_test.py::test - OSRSBytes.Hiscores.SkillError: ERROR: skill 'defence' does not exist
==================== 1 failed, 1 passed, 1 warning in 3.61s ====================
How do you run the tests?
This will error out when you do
user.skill('defense')
oruser.skill('defense')
as you've putif skill = 'defense': skill = 'defence'
but left it spelleddefense
in the skills list. I suggest swapping those around and doingif skill = 'defence': skill = 'defense'
instead.
I think I did this in the original pull request my bad... will fix and start paying more attention :)
How do you run the tests?
The tests are available to run when a Pull request is made. I think I have to approve them but I could look into modifying that. If you forked it, they should appear under actions
at the top
This will error out when you do
user.skill('defense')
oruser.skill('defense')
as you've putif skill = 'defense': skill = 'defence'
but left it spelleddefense
in the skills list. I suggest swapping those around and doingif skill = 'defence': skill = 'defense'
instead.